/* ============================================================
   MARSEILLE LIFE RP — design system
   Palette: near-black asphalt / electric OM blue / white paint
   Type: Anton (display) + Permanent Marker (tag/accent) + Barlow Condensed (body)
   Signature: torn spray-edge dividers + badge corner brackets
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Permanent+Marker&family=Barlow+Condensed:wght@400;500;600;700&display=swap');

:root {
  --bg:          #0a0d12;
  --bg-alt:      #10151d;
  --bg-panel:    #131922;
  --blue:        #1f6fe0;
  --blue-light:  #4ea3ff;
  --blue-deep:   #0d3d8a;
  --white:       #f2f4f7;
  --steel:       #2a3140;
  --steel-soft:  #1b212c;
  --silver:      #9aa4b2;

  --font-display: 'Anton', sans-serif;
  --font-tag: 'Permanent Marker', cursive;
  --font-body: 'Barlow Condensed', sans-serif;

  --container: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* subtle asphalt / grain texture on the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle at 15% 8%, rgba(31,111,224,0.10), transparent 40%),
    radial-gradient(circle at 85% 92%, rgba(31,111,224,0.08), transparent 45%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.012) 0px, rgba(255,255,255,0.012) 1px, transparent 1px, transparent 3px);
}

a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  font-family: var(--font-tag);
  color: var(--blue-light);
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  display: inline-block;
  transform: rotate(-2deg);
  margin-bottom: 10px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
  color: var(--white);
}

h1 { font-size: clamp(2.6rem, 6vw, 5rem); line-height: 0.98; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); line-height: 1.02; }
h3 { font-size: 1.4rem; }

p { color: var(--silver); }

.text-blue { color: var(--blue-light); }

/* ---------------- NAV ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,13,18,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--steel);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-brand img {
  height: 46px;
  width: 46px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--steel);
}

.nav-brand span {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.nav-brand span b { color: var(--blue-light); }

.nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.02rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--silver);
  padding: 8px 16px;
  border-radius: 4px;
  transition: color .2s, background .2s;
}

.nav-links a:hover { color: var(--white); background: var(--steel-soft); }
.nav-links a.active { color: var(--white); background: var(--blue-deep); }

.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--steel);
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    display: none;
    gap: 2px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-toggle {
    display: block;
    background: none;
    border: 1px solid var(--steel);
    color: var(--white);
    font-size: 1.4rem;
    padding: 6px 12px;
    border-radius: 4px;
  }
}

/* ---------------- HERO ---------------- */
.hero {
  position: relative;
  padding: 76px 0 60px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -220px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 700px;
  background: radial-gradient(circle, rgba(31,111,224,0.35), transparent 65%);
  filter: blur(10px);
  z-index: 0;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-tags { justify-content: center; }
}

.hero h1 { margin-bottom: 18px; }

.hero p.lead {
  font-size: 1.3rem;
  color: var(--silver);
  max-width: 46ch;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.tag {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  color: var(--blue-light);
  border: 1px solid var(--blue-deep);
  background: rgba(31,111,224,0.08);
  padding: 6px 14px;
  border-radius: 999px;
}

.hero-logo-frame {
  position: relative;
  border: 1px solid var(--steel);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-panel);
  box-shadow: 0 30px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(31,111,224,0.12);
}

.hero-logo-frame img {
  width: 100%;
  display: block;
}

/* ---------------- BUTTONS ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 13px 26px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 24px rgba(31,111,224,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(31,111,224,0.5); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--steel);
}
.btn-ghost:hover { border-color: var(--blue-light); color: var(--blue-light); }

/* ---------------- TORN / SPRAY DIVIDER (signature element) ---------------- */
.torn-divider {
  height: 46px;
  width: 100%;
  background: var(--bg-alt);
  clip-path: polygon(
    0% 100%, 0% 30%, 3% 45%, 6% 20%, 9% 50%, 12% 10%, 15% 40%, 18% 15%,
    21% 55%, 24% 25%, 27% 5%, 30% 35%, 33% 60%, 36% 20%, 39% 45%, 42% 10%,
    45% 50%, 48% 25%, 51% 40%, 54% 8%, 57% 45%, 60% 20%, 63% 55%, 66% 15%,
    69% 40%, 72% 5%, 75% 35%, 78% 60%, 81% 25%, 84% 45%, 87% 10%, 90% 50%,
    93% 20%, 96% 40%, 100% 15%, 100% 100%
  );
}
.torn-divider.flip { transform: rotate(180deg); }

/* ---------------- SECTION ---------------- */
.section {
  padding: 70px 0;
  background: var(--bg-alt);
  position: relative;
  z-index: 1;
}
.section.dark { background: var(--bg); }

.section-head {
  max-width: 640px;
  margin-bottom: 44px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------------- CARDS / BADGE CORNERS ---------------- */
.grid {
  display: grid;
  gap: 24px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  position: relative;
  background: var(--bg-panel);
  border: 1px solid var(--steel);
  border-radius: 10px;
  padding: 30px 26px;
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--blue-deep); }

/* badge-style corner bracket, echoes the shield in the logo */
.card::before, .card::after {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
  border: 2px solid var(--blue);
  opacity: 0.85;
}
.card::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.card::after  { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.card .num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--blue-deep);
  -webkit-text-stroke: 1px var(--blue-light);
  color: transparent;
  margin-bottom: 8px;
  display: block;
}

.card h3 { margin-bottom: 10px; }
.card p { margin: 0; font-size: 1.02rem; }

/* ---------------- FORMS ---------------- */
.form-card {
  background: var(--bg-panel);
  border: 1px solid var(--steel);
  border-radius: 12px;
  padding: 36px;
  position: relative;
}
.form-card::before, .form-card::after {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  border: 2px solid var(--blue);
  opacity: 0.85;
}
.form-card::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.form-card::after  { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.02rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--blue-light);
  margin-bottom: 8px;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field select,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--steel);
  border-radius: 6px;
  padding: 13px 14px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1.05rem;
  outline: none;
  transition: border-color .2s;
}
.field input[type="text"]:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
}
.field textarea { min-height: 130px; resize: vertical; }
.field-hint { color: #5b6472; font-size: 0.9rem; margin-top: 6px; }

.form-feedback {
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-weight: 600;
  display: none;
}
.form-feedback.success {
  display: block;
  background: rgba(31,111,224,0.12);
  border: 1px solid var(--blue-deep);
  color: var(--blue-light);
}
.form-feedback.error {
  display: block;
  background: rgba(224,60,31,0.1);
  border: 1px solid #7a2c1c;
  color: #ff8a6b;
}

.suggestion-card { margin-bottom: 22px; }
.suggestion-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.suggestion-date { color: #5b6472; font-size: 0.9rem; }
.staff-reply {
  margin-top: 16px;
  padding: 14px 16px;
  background: rgba(31,111,224,0.08);
  border-left: 3px solid var(--blue);
  border-radius: 6px;
}
.staff-reply .staff-reply-label {
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.4px;
  color: var(--blue-light);
  display: block;
  margin-bottom: 6px;
}
.staff-reply p { margin: 0; color: var(--white); }

.empty-state { text-align: center; color: var(--silver); padding: 20px 0; }

/* ---------------- MODAL ---------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4,6,9,0.72);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--bg-panel);
  border: 1px solid var(--steel);
  border-radius: 12px;
  padding: 32px;
  width: 100%;
  max-width: 440px;
  position: relative;
}
.modal-box::before, .modal-box::after {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
  border: 2px solid var(--blue);
  opacity: 0.85;
}
.modal-box::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.modal-box::after  { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.modal-close {
  position: absolute;
  top: 14px; right: 16px;
  background: none;
  border: none;
  color: var(--silver);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover { color: var(--white); }
.modal-summary {
  background: var(--bg);
  border: 1px solid var(--steel);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.modal-summary .pack-name { font-family: var(--font-display); font-size: 1.1rem; }
.modal-summary .pack-price { color: var(--blue-light); font-family: var(--font-display); font-size: 1.2rem; }

/* ---------------- ADMIN ---------------- */
.admin-shell { min-height: 100vh; display: flex; flex-direction: column; }
.admin-topbar {
  border-bottom: 1px solid var(--steel);
  padding: 16px 0;
  background: rgba(10,13,18,0.9);
}
.admin-topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-brand { display: flex; align-items: center; gap: 12px; }
.admin-brand img { height: 40px; width: 40px; border-radius: 6px; border: 1px solid var(--steel); }
.admin-brand span { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.5px; }
.admin-brand span b { color: var(--blue-light); }

.login-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.login-card { width: 100%; max-width: 400px; }

.stat-strip { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 34px; }
.stat-box {
  flex: 1;
  min-width: 160px;
  background: var(--bg-panel);
  border: 1px solid var(--steel);
  border-radius: 10px;
  padding: 20px 22px;
}
.stat-box .stat-label { color: var(--silver); font-size: 0.95rem; display:block; margin-bottom: 6px; }
.stat-box .stat-value { font-family: var(--font-display); font-size: 2rem; color: var(--blue-light); }

.orders-table-wrap {
  background: var(--bg-panel);
  border: 1px solid var(--steel);
  border-radius: 10px;
  overflow-x: auto;
}
.orders-table { width: 100%; border-collapse: collapse; min-width: 900px; }
.orders-table th, .orders-table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--steel);
  font-size: 1rem;
}
.orders-table th {
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.4px;
  color: var(--blue-light);
  background: var(--steel-soft);
}
.orders-table td { color: var(--white); }
.orders-table tr:last-child td { border-bottom: none; }

.status-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.status-badge.pending { background: rgba(224,160,31,0.15); color: #f0b429; border: 1px solid #7a5a1c; }
.status-badge.done { background: rgba(31,224,110,0.12); color: #4ee08a; border: 1px solid #1c7a44; }
.status-badge.out { background: rgba(224,60,31,0.12); color: #ff8a6b; border: 1px solid #7a2c1c; }

.btn-small {
  padding: 7px 14px;
  font-size: 0.9rem;
  border-radius: 5px;
}

.admin-nav { display: flex; }
.admin-nav-link {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--silver);
  padding: 8px 14px;
  border-radius: 5px;
  transition: color .2s, background .2s;
}
.admin-nav-link:hover { color: var(--white); background: var(--steel-soft); }
.admin-nav-link.active { color: var(--white); background: var(--blue-deep); }

.dash-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
@media (max-width: 900px) { .dash-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .dash-grid { grid-template-columns: 1fr; } }

.dash-stat-card {
  background: var(--bg-panel); border: 1px solid var(--steel); border-radius: 10px;
  padding: 22px 22px; display: flex; flex-direction: column; gap: 6px; text-decoration: none;
  transition: border-color .15s, transform .15s;
}
.dash-stat-card:hover { border-color: var(--blue); transform: translateY(-2px); }
.dash-stat-card .dash-icon { color: var(--blue-light); margin-bottom: 6px; }
.dash-stat-card .dash-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.dash-stat-card .dash-value { font-family: var(--font-display); font-size: 2.2rem; color: var(--white); }
.dash-stat-card .dash-label { color: var(--silver); font-size: 0.95rem; }

.dash-section { margin-bottom: 40px; }
.dash-section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.dash-section-head h3 { margin: 0; }
.dash-section-head a { color: var(--blue-light); font-size: 0.92rem; font-weight: 600; }

.dash-mini-list { background: var(--bg-panel); border: 1px solid var(--steel); border-radius: 10px; overflow: hidden; }
.dash-mini-item {
  padding: 14px 18px; border-bottom: 1px solid var(--steel);
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
}
.dash-mini-item:last-child { border-bottom: none; }
.dash-mini-item .dmi-title { font-weight: 600; color: var(--white); font-size: 0.98rem; }
.dash-mini-item .dmi-meta { color: var(--silver); font-size: 0.85rem; }
.dash-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 900px) { .dash-two-col { grid-template-columns: 1fr; } }

/* ---------------- SPEECH BUBBLES (avis) ---------------- */
.bubble-row { max-width: 760px; margin: 0 auto; }
.bubble {
  max-width: 72%;
  padding: 18px 22px;
  border-radius: 20px;
  margin-bottom: 26px;
  position: relative;
  font-size: 1.05rem;
}
.bubble .bubble-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.4px;
  margin-bottom: 6px;
  display: block;
}
.bubble .bubble-stars { letter-spacing: 2px; margin-bottom: 8px; display: block; font-size: 0.95rem; }
.bubble p { margin: 0; }

.bubble.blue {
  margin-left: auto;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: #fff;
  border-bottom-right-radius: 4px;
}
.bubble.blue .bubble-name { color: #dceaff; }
.bubble.blue .bubble-stars { color: #ffd873; }
.bubble.blue p { color: #eef4ff; }
.bubble.blue::after {
  content: "";
  position: absolute;
  right: -8px; bottom: 0;
  width: 0; height: 0;
  border: 10px solid transparent;
  border-left-color: var(--blue-deep);
  border-bottom: 0;
  border-right: 0;
}

.bubble.white {
  margin-right: auto;
  background: var(--white);
  color: #14181f;
  border-bottom-left-radius: 4px;
}
.bubble.white .bubble-name { color: var(--blue-deep); }
.bubble.white .bubble-stars { color: #d99a1b; }
.bubble.white p { color: #2a2f3a; }
.bubble.white::after {
  content: "";
  position: absolute;
  left: -8px; bottom: 0;
  width: 0; height: 0;
  border: 10px solid transparent;
  border-right-color: var(--white);
  border-bottom: 0;
  border-left: 0;
}

@media (max-width: 640px) {
  .bubble { max-width: 88%; }
}

/* ---------------- FOOTER ---------------- */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--steel);
  padding: 40px 0 26px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-brand img { height: 38px; width: 38px; border-radius: 6px; }
.footer-brand span { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.5px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links li { margin-right: 22px; }
.footer-links li:last-child { margin-right: 0; }
.footer-links a { color: var(--silver); font-weight: 600; font-size: 0.98rem; }
.footer-links a:hover { color: var(--blue-light); }
.footer-note { color: #5b6472; font-size: 0.88rem; margin-top: 18px; text-align: center; }

/* watermark "13" motif */
.watermark-13 {
  position: absolute;
  font-family: var(--font-display);
  font-size: 22rem;
  color: rgba(255,255,255,0.02);
  right: -40px;
  top: -60px;
  z-index: 0;
  pointer-events: none;
  line-height: 1;
  user-select: none;
}

/* ---------------- EDITABLE ZONES ---------------- */
.editable {
  outline: 1px dashed rgba(78,163,255,0.0);
}
