/* ============================================================
   Printly Belgium — style.css
   Design : pro & épuré. Blanc, ardoise, accent bleu.
   ============================================================ */
:root {
  --ink: #232842;
  --ink-soft: #3b4060;
  --muted: #6b7091;
  --line: #e5e5f0;
  --bg: #ffffff;
  --bg-soft: #f8f8fc;
  --accent: #6155e6;
  --accent-dark: #4c40cf;
  --accent-soft: #efedfc;
  --ok: #16a34a;
  --danger: #dc2626;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 4px 12px rgba(15, 23, 42, .08), 0 16px 48px rgba(15, 23, 42, .12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 24px;
}
.brand img { height: 44px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: var(--ink-soft); font-size: 15px; font-weight: 500;
  padding: 8px 14px; border-radius: 8px; transition: all .15s;
}
.main-nav a:hover { background: var(--bg-soft); color: var(--ink); text-decoration: none; }
.main-nav a.active { color: var(--accent); background: var(--accent-soft); }
.main-nav a.nav-cta {
  background: var(--accent); color: #fff; margin-left: 8px;
}
.main-nav a.nav-cta:hover { background: var(--accent-dark); }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  font-size: 26px; color: var(--ink); line-height: 1;
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 12px 24px 20px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 14px; }
  .main-nav a.nav-cta { margin-left: 0; margin-top: 8px; text-align: center; }
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: 15px; font-weight: 600;
  padding: 12px 24px; border-radius: 10px; border: none; cursor: pointer;
  transition: all .15s; text-decoration: none !important;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-outline:hover { border-color: var(--ink-soft); background: var(--bg-soft); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); }
.btn-danger { background: #fef2f2; color: var(--danger); }
.btn-danger:hover { background: #fee2e2; }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 15px 32px; font-size: 16px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 72px; background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { font-size: 46px; line-height: 1.12; letter-spacing: -1.2px; font-weight: 750; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { font-size: 18px; color: var(--muted); margin: 20px 0 32px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual {
  aspect-ratio: 1 / .85; border-radius: 20px; background: var(--ink);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-badges { display: flex; gap: 20px; margin-top: 36px; flex-wrap: wrap; }
.hero-badges span { font-size: 13.5px; color: var(--ink-soft); font-weight: 500; display: flex; align-items: center; gap: 7px; }
.hero-badges span::before { content: "✓"; color: var(--ok); font-weight: 700; }
@media (max-width: 860px) {
  .hero { padding: 48px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: 33px; }
  .hero-visual { display: none; }
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { max-width: 620px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: 1.8px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.section-head h2 { font-size: 32px; letter-spacing: -0.7px; line-height: 1.2; }
.section-head p { color: var(--muted); margin-top: 12px; font-size: 16.5px; }

/* ---------- Cartes services ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .cards-3 { grid-template-columns: 1fr; } }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: all .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card .icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.card h3 { font-size: 18.5px; margin-bottom: 10px; letter-spacing: -0.3px; }
.card p { color: var(--muted); font-size: 15px; }
.card .card-link { display: inline-block; margin-top: 16px; font-weight: 600; font-size: 14.5px; }

/* ---------- Étapes ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 26px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink); color: #fff; font-weight: 700; font-size: 15px; margin-bottom: 14px;
}
.step h4 { font-size: 16px; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--muted); }

/* ---------- Grille produits ---------- */
.products-toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.chip {
  font-family: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
  padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line);
  background: #fff; color: var(--ink-soft); transition: all .15s;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: all .2s;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.product-media {
  aspect-ratio: 4 / 3; background: var(--bg-soft); position: relative;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-media .ph {
  font-size: 44px; width: 84px; height: 84px; border-radius: 22px;
  background: #fff; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
}
.product-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--ink); color: #fff; font-size: 11.5px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px; letter-spacing: .4px;
}
.product-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.product-body .cat { font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.product-body h3 { font-size: 17px; margin: 6px 0 8px; letter-spacing: -0.2px; }
.product-body .desc { font-size: 14px; color: var(--muted); flex: 1; }
.product-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; gap: 10px; }
.price { font-size: 19px; font-weight: 750; letter-spacing: -0.4px; }
.price small { font-size: 12px; font-weight: 500; color: var(--muted); }
.empty-state { text-align: center; color: var(--muted); padding: 64px 0; }

/* ---------- Formulaire devis (wizard) ---------- */
.wizard { max-width: 760px; margin: 0 auto; }
.wizard-progress { display: flex; align-items: center; gap: 0; margin-bottom: 40px; }
.wp-step { flex: 1; text-align: center; position: relative; }
.wp-step .dot {
  width: 32px; height: 32px; border-radius: 50%; margin: 0 auto 8px;
  background: #fff; border: 2px solid var(--line); color: var(--muted);
  display: flex; align-items: center; justify-content: center; font-size: 13.5px; font-weight: 700;
  position: relative; z-index: 2; transition: all .2s;
}
.wp-step.done .dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.wp-step.current .dot { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.wp-step .lbl { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.wp-step.current .lbl { color: var(--accent); }
.wp-step::after {
  content: ""; position: absolute; top: 16px; left: 50%; width: 100%; height: 2px;
  background: var(--line); z-index: 1;
}
.wp-step.done::after { background: var(--accent); }
.wp-step:last-child::after { display: none; }
@media (max-width: 640px) { .wp-step .lbl { display: none; } }

.wizard-panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 38px; box-shadow: var(--shadow);
}
@media (max-width: 640px) { .wizard-panel { padding: 24px 20px; } }
.wizard-panel h2 { font-size: 23px; letter-spacing: -0.4px; margin-bottom: 8px; }
.wizard-panel .hint { color: var(--muted); font-size: 14.5px; margin-bottom: 26px; }
.wizard-nav { display: flex; justify-content: space-between; margin-top: 32px; gap: 12px; }

/* choix en tuiles */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }
.tiles.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) { .tiles.cols-3 { grid-template-columns: 1fr 1fr; } }
.tile {
  border: 1.5px solid var(--line); border-radius: 12px; padding: 18px;
  cursor: pointer; transition: all .15s; background: #fff; position: relative;
}
.tile:hover { border-color: var(--accent); }
.tile.selected { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent); }
.tile .t-icon { font-size: 26px; margin-bottom: 8px; }
.tile h4 { font-size: 15.5px; margin-bottom: 4px; }
.tile p { font-size: 13px; color: var(--muted); }

/* couleurs */
.swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.swatch {
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  border: 2px solid var(--line); transition: all .15s; position: relative;
}
.swatch.selected { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--accent); }
.swatch[title]::after { font-size: 11px; }

/* upload */
.dropzone {
  border: 2px dashed var(--line); border-radius: 12px; padding: 44px 20px;
  text-align: center; cursor: pointer; transition: all .15s; background: var(--bg-soft);
}
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: var(--accent-soft); }
.dropzone .dz-icon { font-size: 36px; margin-bottom: 10px; }
.dropzone p { color: var(--muted); font-size: 14px; }
.dropzone strong { color: var(--ink); }
.file-list { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.file-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 14px; font-size: 14px;
}
.file-item button { background: none; border: none; color: var(--danger); cursor: pointer; font-size: 16px; }

/* champs */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.field label .req { color: var(--danger); }
.field input[type=text], .field input[type=email], .field input[type=tel],
.field input[type=number], .field input[type=url], .field input[type=password],
.field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 15px; color: var(--ink);
  padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  background: #fff; transition: border-color .15s; outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 110px; }
.field .help { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* quantité */
.qty-picker { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; }
.qty-picker button { width: 44px; height: 44px; border: none; background: var(--bg-soft); font-size: 20px; cursor: pointer; color: var(--ink); }
.qty-picker button:hover { background: var(--line); }
.qty-picker input { width: 70px; height: 44px; border: none; text-align: center; font-size: 16px; font-weight: 600; outline: none; }

/* récap */
.recap { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 22px; }
.recap-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 18px; font-size: 14.5px; border-bottom: 1px solid var(--line); }
.recap-row:last-child { border-bottom: none; }
.recap-row:nth-child(odd) { background: var(--bg-soft); }
.recap-row b { text-align: right; }

.notice {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--accent-soft); border: 1px solid #d8d3f8; border-radius: 12px;
  padding: 14px 18px; font-size: 14px; color: var(--ink-soft); margin: 18px 0;
}
.notice.green { background: #f0fdf4; border-color: #bbf7d0; }
.notice.red { background: #fef2f2; border-color: #fecaca; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; background: #fff; overflow: hidden; }
.faq-item summary {
  cursor: pointer; padding: 18px 22px; font-weight: 600; font-size: 15.5px;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 22px; color: var(--muted); font-weight: 400; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 22px 18px; color: var(--muted); font-size: 14.5px; }

/* ---------- Page liens (linktree) ---------- */
.links-page {
  min-height: 100vh; background: linear-gradient(165deg, #1b1b30 0%, #232447 55%, #372a6e 100%);
  display: flex; align-items: center; justify-content: center; padding: 48px 20px;
}
.links-card { width: 100%; max-width: 460px; text-align: center; }
.links-card .avatar {
  width: 96px; height: 96px; border-radius: 28px; background: #fff; margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg);
  padding: 14px;
}
.links-card h1 { color: #fff; font-size: 25px; letter-spacing: -0.4px; }
.links-card .tagline { color: #94a3b8; font-size: 14.5px; margin: 8px 0 32px; }
.link-btn {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
  color: #fff; border-radius: 14px; padding: 16px 22px; margin-bottom: 14px;
  font-size: 15.5px; font-weight: 600; transition: all .18s; text-decoration: none !important;
  backdrop-filter: blur(6px);
}
.link-btn:hover { background: rgba(255, 255, 255, .14); transform: translateY(-2px); }
.link-btn .li-icon { font-size: 21px; width: 28px; }
.link-btn .li-arrow { margin-left: auto; opacity: .5; }
.links-footer { margin-top: 36px; }
.links-footer a { color: #64748b; font-size: 13px; }

/* ---------- Admin ---------- */
.admin-wrap { max-width: 1000px; margin: 0 auto; padding: 40px 24px 80px; }
.admin-login {
  max-width: 400px; margin: 10vh auto; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); text-align: center;
}
.admin-login img { height: 44px; margin: 0 auto 24px; }
.admin-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin: 28px 0 30px; flex-wrap: wrap; }
.admin-tabs button {
  font-family: inherit; font-size: 14.5px; font-weight: 600; color: var(--muted);
  background: none; border: none; cursor: pointer; padding: 12px 18px;
  border-bottom: 2.5px solid transparent; margin-bottom: -1px;
}
.admin-tabs button.active { color: var(--accent); border-bottom-color: var(--accent); }
.admin-panel { display: none; }
.admin-panel.active { display: block; }
.admin-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

.admin-table { width: 100%; border-collapse: collapse; font-size: 14.5px; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.admin-table th { text-align: left; font-size: 12.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); padding: 13px 16px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.admin-table td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table .thumb { width: 52px; height: 40px; border-radius: 8px; object-fit: cover; background: var(--bg-soft); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.table-scroll { overflow-x: auto; border-radius: 12px; }

/* modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .5); z-index: 100;
  display: none; align-items: flex-start; justify-content: center; padding: 5vh 20px; overflow-y: auto;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #fff; border-radius: 16px; width: 100%; max-width: 560px;
  padding: 32px; box-shadow: var(--shadow-lg);
}
.modal h3 { font-size: 20px; margin-bottom: 22px; letter-spacing: -0.3px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 26px; }

.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--ink); color: #fff; font-size: 14.5px; font-weight: 500;
  padding: 13px 24px; border-radius: 12px; box-shadow: var(--shadow-lg);
  transition: transform .25s; z-index: 200; opacity: 0;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ---------- Pages légales ---------- */
.legal-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; }
.legal-doc { max-width: 800px; }
.legal-doc h2 { font-size: 26px; letter-spacing: -0.5px; margin: 40px 0 16px; }
.legal-doc h2:first-child { margin-top: 0; }
.legal-doc h3 { font-size: 18px; margin: 28px 0 10px; }
.legal-doc p, .legal-doc li { font-size: 15px; color: var(--ink-soft); margin-bottom: 10px; }
.legal-doc ul { padding-left: 22px; margin-bottom: 14px; }
.legal-doc .updated { font-size: 13px; color: var(--muted); font-style: italic; }
.legal-section { display: none; }
.legal-section.active { display: block; }

/* ---------- CTA bandeau ---------- */
.cta-band { background: var(--ink); border-radius: 20px; padding: 56px 48px; text-align: center; color: #fff; }
.cta-band h2 { font-size: 30px; letter-spacing: -0.6px; margin-bottom: 12px; }
.cta-band p { color: #94a3b8; margin-bottom: 28px; font-size: 16px; }
@media (max-width: 640px) { .cta-band { padding: 40px 24px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 56px 0 32px; margin-top: 72px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); margin-bottom: 16px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: var(--ink-soft); font-size: 14.5px; }
.footer-grid a:hover { color: var(--accent); }
.footer-brand img { height: 40px; margin-bottom: 14px; }
.footer-brand p { font-size: 14px; color: var(--muted); max-width: 280px; }
.footer-bottom {
  border-top: 1px solid var(--line); margin-top: 44px; padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted);
}

/* util */
.hidden { display: none !important; }
.text-muted { color: var(--muted); }
.mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
