/* ===== MAHI Retail Network — base & site vitrine ===== */
/* Polices hébergées localement (aucun appel à un service tiers) */
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('../fonts/manrope.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/cormorant-500.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/cormorant-600.woff2') format('woff2'); }

:root {
  --bg: #0b111b;
  --bg-2: #0f1824;
  --surface: #131c2a;
  --surface-2: #192436;
  --surface-3: #1f2c41;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #e9edf4;
  --text-2: #b9c2d0;
  --muted: #8591a4;
  --gold: #d9b45a;
  --gold-hi: #f3d27a;
  --gold-lo: #b88a32;
  --gold-grad: linear-gradient(135deg, #f6d985 0%, #d9b45a 45%, #b88a32 100%);
  --danger: #ef5a6f;
  --ok: #3dd68c;
  --warn: #f5a524;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, .65);
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0; }
.muted { color: var(--muted); }
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold);
}
.gold-text {
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ----- Boutons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease, color .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-gold { background: var(--gold-grad); color: #1d1606; box-shadow: 0 8px 24px -10px rgba(217, 180, 90, .7); }
.btn-gold:hover { box-shadow: 0 10px 30px -8px rgba(217, 180, 90, .85); }
.btn-outline { border-color: rgba(217, 180, 90, .55); color: var(--gold-hi); background: rgba(217, 180, 90, .06); }
.btn-outline:hover { background: rgba(217, 180, 90, .14); border-color: var(--gold); }
.btn-ghost { border-color: var(--line-2); color: var(--text-2); background: transparent; }
.btn-ghost:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.btn-danger { border-color: rgba(239, 90, 111, .45); color: #ff9aaa; background: transparent; }
.btn-danger:hover { background: rgba(239, 90, 111, .12); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold-hi); outline-offset: 2px;
}

/* ----- Marque ----- */
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 38px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-word { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: .14em; color: var(--gold-hi); }
.brand-sub { font-size: 9.5px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); margin-top: 4px; }

/* ===== Site vitrine ===== */
.site { background:
  radial-gradient(1200px 600px at 85% -10%, rgba(217, 180, 90, .10), transparent 60%),
  radial-gradient(900px 500px at -10% 30%, rgba(79, 140, 255, .06), transparent 60%),
  var(--bg); }

.site-bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 16px clamp(16px, 4vw, 48px);
  background: rgba(11, 17, 27, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-nav { display: flex; gap: 28px; margin-left: auto; }
.site-nav a { text-decoration: none; color: var(--text-2); font-size: 14px; font-weight: 500; }
.site-nav a:hover { color: var(--gold-hi); }

.hero {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px;
  padding: clamp(48px, 9vw, 110px) clamp(16px, 4vw, 48px) clamp(40px, 6vw, 80px);
}
.hero h1 { font-family: var(--display); font-weight: 600; font-size: clamp(40px, 6vw, 72px); letter-spacing: -.01em; margin: 16px 0 20px; }
.lead { font-size: 17px; color: var(--text-2); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-art { position: relative; display: grid; place-items: center; }
.hero-art img { position: relative; width: min(340px, 72%); height: auto; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .5)); }
.hero-glow {
  position: absolute; inset: 10% 8%; border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 180, 90, .22), transparent 65%);
  filter: blur(10px);
}

.section { max-width: 1180px; margin: 0 auto; padding: clamp(40px, 7vw, 90px) clamp(16px, 4vw, 48px); }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head h2, .contact h2 { font-family: var(--display); font-weight: 600; font-size: clamp(30px, 4vw, 44px); margin-top: 10px; }

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; transition: border-color .2s, transform .2s;
}
.card:hover { border-color: rgba(217, 180, 90, .35); transform: translateY(-2px); }
.card-num { font-family: var(--display); font-size: 30px; color: var(--gold); }
.card h3 { font-size: 18px; margin: 14px 0 8px; }
.card p { color: var(--text-2); font-size: 14.5px; }

.univers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.univers-item {
  display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
  padding: 24px; border-radius: var(--radius-lg);
  border: 1px solid var(--line); background: rgba(255, 255, 255, .02);
  font-weight: 600;
}
.univers-item svg { width: 34px; height: 34px; color: var(--gold-hi); }

.contact-card {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: clamp(24px, 4vw, 44px); border-radius: 24px;
  background: linear-gradient(135deg, rgba(217, 180, 90, .14), rgba(217, 180, 90, .03) 60%), var(--surface);
  border: 1px solid rgba(217, 180, 90, .25);
}
.contact-card .muted { margin-top: 8px; }

.site-foot {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  max-width: 1180px; margin: 0 auto; padding: 28px clamp(16px, 4vw, 48px) 40px;
  color: var(--muted); font-size: 13px; border-top: 1px solid var(--line);
}
.site-foot a { color: var(--muted); }
.foot-links { display: flex; gap: 20px; }
.site-foot a:hover { color: var(--gold-hi); }

/* ===== Mentions légales ===== */
.legal { max-width: 780px; margin: 0 auto; padding: clamp(40px, 7vw, 80px) clamp(16px, 4vw, 32px) 60px; }
.legal h1 { font-family: var(--display); font-weight: 600; font-size: clamp(36px, 5vw, 52px); margin: 10px 0 32px; }
.legal section { padding: 26px 0; border-top: 1px solid var(--line); }
.legal h2 { font-size: 18px; margin-bottom: 14px; color: var(--gold-hi); }
.legal p { color: var(--text-2); margin-bottom: 12px; }
.legal p:last-child { margin-bottom: 0; }
.legal a { color: var(--gold-hi); }
.legal dl { display: grid; grid-template-columns: 220px 1fr; gap: 10px 20px; margin: 0; }
.legal dt { color: var(--muted); font-size: 14px; }
.legal dd { margin: 0; color: var(--text); }
@media (max-width: 640px) { .legal dl { grid-template-columns: 1fr; gap: 2px; } .legal dd { margin-bottom: 10px; } }

/* ===== Connexion ===== */
.auth {
  min-height: 100vh; display: grid; place-items: center; padding: 24px 16px;
  background: radial-gradient(700px 400px at 50% 0%, rgba(217, 180, 90, .12), transparent 70%), var(--bg);
}
.auth-back { position: fixed; top: 20px; left: 20px; color: var(--muted); text-decoration: none; font-size: 14px; }
.auth-back:hover { color: var(--gold-hi); }
.auth-card {
  width: 100%; max-width: 400px; text-align: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  padding: 36px 28px 30px; box-shadow: var(--shadow);
}
.auth-mark { width: 76px; margin: 0 auto 18px; }
.auth-card h1 { font-family: var(--display); font-size: 32px; font-weight: 600; }
.auth-card .muted { margin: 6px 0 22px; font-size: 14px; }
.form { text-align: left; }
.form label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin: 14px 0 6px; }
.form input, .field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text);
  font: 15px var(--font); transition: border-color .15s, box-shadow .15s;
}
.form input:focus, .field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217, 180, 90, .18);
}
.form .btn { margin-top: 22px; }
.pw { position: relative; }
.pw input { padding-right: 46px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; cursor: pointer; font-size: 16px; padding: 6px; opacity: .7; }
.alert {
  background: rgba(239, 90, 111, .12); border: 1px solid rgba(239, 90, 111, .4); color: #ffb3bf;
  padding: 10px 12px; border-radius: 12px; font-size: 14px; text-align: left;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: left; }
  .hero-art { order: -1; }
  .hero-art img { width: 200px; }
  .cards-3 { grid-template-columns: 1fr; }
  .univers { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .site-nav { display: none; }
  .site-bar { justify-content: space-between; }
  .brand-sub { display: none; }
  .site-bar .btn { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
