/* ============================================================
   SocialMedia Pro — Netlinking
   Design : Clean / Light Business
   ============================================================ */

/* --- Variables --- */
:root {
  --primary:      #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light:#eff6ff;
  --accent:       #0ea5e9;
  --success:      #16a34a;
  --warning:      #d97706;
  --danger:       #dc2626;
  --info:         #0891b2;

  --text-primary:   #111827;
  --text-secondary: #6b7280;
  --text-muted:     #9ca3af;
  --border:         #e5e7eb;
  --bg:             #f9fafb;
  --white:          #ffffff;

  --radius:   0.5rem;
  --radius-lg:0.75rem;
  --shadow:   0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg:0 10px 15px rgba(0,0,0,.07), 0 4px 6px rgba(0,0,0,.05);

  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --max-w: 1200px;
  --transition: .2s ease;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Layout --- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 4rem 0; }
.section-title { font-size: 1.875rem; font-weight: 700; text-align: center; margin-bottom: .75rem; }
.section-sub   { font-size: 1.1rem; color: var(--text-secondary); text-align: center; margin-bottom: 3rem; max-width: 600px; margin-left: auto; margin-right: auto; }

/* --- Header / Navbar --- */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow);
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.navbar-brand {
  display: flex; align-items: center; gap: .5rem;
  font-weight: 700; font-size: 1.125rem; color: var(--text-primary);
  text-decoration: none;
}
.navbar-brand span { color: var(--primary); }
.navbar-nav { display: flex; align-items: center; gap: .25rem; list-style: none; }
.navbar-nav a {
  padding: .4rem .75rem; border-radius: var(--radius);
  color: var(--text-secondary); font-size: .9rem; font-weight: 500;
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}
.navbar-nav a:hover, .navbar-nav a.active { background: var(--primary-light); color: var(--primary); }
.navbar-lang { display: flex; gap: .25rem; }
.navbar-lang a {
  padding: .25rem .5rem; border-radius: .25rem; font-size: .8rem; font-weight: 600;
  color: var(--text-muted); text-decoration: none; border: 1px solid transparent;
}
.navbar-lang a.active, .navbar-lang a:hover { border-color: var(--border); color: var(--primary); }
.navbar-cart {
  position: relative; padding: .4rem .75rem; border-radius: var(--radius);
  background: var(--primary-light); color: var(--primary); font-weight: 600;
  font-size: .875rem; text-decoration: none; display: flex; align-items: center; gap: .4rem;
  cursor: pointer; border: none;
}
.cart-badge {
  background: var(--primary); color: white; border-radius: 999px;
  min-width: 18px; height: 18px; font-size: .7rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 .25rem;
}
.navbar-toggle {
  display: none; background: var(--bg); border: 1.5px solid var(--border); cursor: pointer;
  padding: .45rem .65rem; border-radius: var(--radius); color: var(--text-primary);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  align-items: center; justify-content: center;
}
.navbar-toggle:hover, .navbar-toggle.active { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .625rem 1.25rem; border-radius: var(--radius);
  font-size: .9rem; font-weight: 600; border: none; cursor: pointer;
  transition: all var(--transition); text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary  { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); color: white; }
.btn-outline  { background: white; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary-light); color: var(--primary); }
.btn-success  { background: var(--success); color: white; }
.btn-success:hover { background: #15803d; color: white; }
.btn-danger   { background: var(--danger); color: white; }
.btn-sm       { padding: .35rem .75rem; font-size: .8rem; }
.btn-lg       { padding: .875rem 1.875rem; font-size: 1rem; }
.btn-block    { width: 100%; justify-content: center; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* --- Hero Section --- */
.hero {
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 50%, #f0fdf4 100%);
  padding: 5rem 0 4rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 60% 40%, rgba(37,99,235,.07) 0%, transparent 70%);
}
.hero-content { position: relative; text-align: center; max-width: 760px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--primary-light); color: var(--primary); border-radius: 999px;
  padding: .3rem .9rem; font-size: .8rem; font-weight: 600; margin-bottom: 1.25rem;
  border: 1px solid rgba(37,99,235,.15);
}
.hero h1 { font-size: clamp(1.875rem, 4vw, 2.75rem); font-weight: 800; line-height: 1.2; margin-bottom: 1.25rem; }
.hero p  { font-size: 1.125rem; color: var(--text-secondary); margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-trust   { margin-top: 2.5rem; display: flex; align-items: center; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
.trust-item   { display: flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--text-secondary); font-weight: 500; }
.trust-icon   { color: var(--success); font-size: 1rem; }

/* --- Process Steps --- */
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
.process-card {
  background: white; border-radius: var(--radius-lg); padding: 2rem 1.5rem;
  text-align: center; border: 1px solid var(--border); box-shadow: var(--shadow);
  position: relative;
}
.process-card::after {
  content: '→'; position: absolute; right: -1.25rem; top: 50%;
  transform: translateY(-50%); font-size: 1.25rem; color: var(--border);
}
.process-card:last-child::after { display: none; }
.process-num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--primary);
  color: white; font-weight: 700; font-size: 1.125rem;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem;
}
.process-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.process-card p  { font-size: .875rem; color: var(--text-secondary); }

/* --- Témoignages --- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testi-card {
  background: white; border-radius: var(--radius-lg); padding: 1.5rem;
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.testi-stars { color: #f59e0b; margin-bottom: .75rem; font-size: 1rem; }
.testi-text  { font-size: .9rem; color: var(--text-secondary); margin-bottom: 1rem; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: .75rem; }
.testi-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--primary-light);
  color: var(--primary); font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.testi-name  { font-size: .875rem; font-weight: 600; }
.testi-role  { font-size: .8rem; color: var(--text-muted); }

/* --- FAQ --- */
.faq-list    { max-width: 720px; margin: 0 auto; }
.faq-item    { border: 1px solid var(--border); border-radius: var(--radius-lg); margin-bottom: .75rem; overflow: hidden; }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem; background: white; cursor: pointer; border: none;
  font-size: .95rem; font-weight: 600; text-align: left; transition: background var(--transition);
}
.faq-question:hover { background: var(--bg); }
.faq-icon { font-size: 1.125rem; color: var(--primary); flex-shrink: 0; transition: transform var(--transition); }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { padding: 0 1.5rem 1.25rem; color: var(--text-secondary); font-size: .9rem; display: none; }
.faq-item.open .faq-answer { display: block; }

/* --- Catalogue --- */
.catalogue-layout { display: grid; grid-template-columns: 260px 1fr; gap: 1.5rem; align-items: start; }
.filter-panel {
  background: white; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.25rem; position: sticky; top: 80px; box-shadow: var(--shadow);
}
.filter-panel h3 { font-size: .9rem; font-weight: 700; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
.filter-group    { margin-bottom: 1.25rem; }
.filter-group label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .4rem; }
.filter-select, .filter-input {
  width: 100%; padding: .5rem .75rem; border: 1px solid var(--border); border-radius: var(--radius);
  font-size: .875rem; background: white; color: var(--text-primary);
  transition: border-color var(--transition);
}
.filter-select:focus, .filter-input:focus { outline: none; border-color: var(--primary); }
.filter-radio-group { display: flex; flex-direction: column; gap: .4rem; }
.filter-radio-group label { font-weight: 400; display: flex; align-items: center; gap: .4rem; cursor: pointer; }

.catalogue-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem;
}
.catalogue-count { font-size: .875rem; color: var(--text-muted); }

/* Login banner dans le catalogue */
.login-banner {
  background: linear-gradient(90deg, var(--primary-light), #e0f2fe);
  border: 1px solid rgba(37,99,235,.2); border-radius: var(--radius-lg);
  padding: .875rem 1.25rem; margin-bottom: 1.25rem;
  display: flex; align-items: center; gap: .75rem; font-size: .9rem;
}
.login-banner a { font-weight: 600; }

/* Table catalogue */
.sites-table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow); }
.sites-table {
  width: 100%; border-collapse: collapse; background: white;
  font-size: .875rem;
}
.sites-table th {
  background: var(--bg); padding: .75rem 1rem; text-align: left;
  font-size: .8rem; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.sites-table td { padding: .875rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.sites-table tr:last-child td { border-bottom: none; }
.sites-table tr:hover td { background: var(--bg); }
.site-domain    { font-weight: 600; color: var(--text-primary); }
.site-domain-masked { color: var(--text-muted); font-style: italic; }
.badge          { display: inline-flex; align-items: center; padding: .2rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 600; }
.badge-success  { background: #dcfce7; color: #15803d; }
.badge-danger   { background: #fee2e2; color: #dc2626; }
.badge-info     { background: #e0f2fe; color: #0369a1; }
.badge-warning  { background: #fef3c7; color: #92400e; }
.badge-primary  { background: var(--primary-light); color: var(--primary); }
.badge-secondary{ background: var(--bg); color: var(--text-secondary); border: 1px solid var(--border); }
.metric-pill    { display: inline-block; background: var(--bg); border: 1px solid var(--border); border-radius: .25rem; padding: .15rem .4rem; font-size: .8rem; font-weight: 600; color: var(--text-primary); }
.in-cart-badge  { background: #dcfce7; color: #15803d; border-radius: var(--radius); padding: .35rem .75rem; font-size: .8rem; font-weight: 600; }

/* --- Panier sidebar (sticky) --- */
.cart-sidebar {
  background: white; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); position: fixed; right: 1.5rem; bottom: 1.5rem;
  width: 340px; max-height: 80vh; display: flex; flex-direction: column;
  z-index: 90; transform: translateY(110%); transition: transform .3s ease;
}
.cart-sidebar.open { transform: translateY(0); }
.cart-sidebar-header {
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
}
.cart-sidebar-header h3 { font-size: .95rem; font-weight: 700; }
.cart-close { background: none; border: none; cursor: pointer; font-size: 1.25rem; color: var(--text-muted); }
.cart-items { flex: 1; overflow-y: auto; padding: .75rem 1.25rem; }
.cart-item  { display: flex; align-items: flex-start; gap: .75rem; padding: .75rem 0; border-bottom: 1px solid var(--border); }
.cart-item:last-child { border-bottom: none; }
.cart-item-info { flex: 1; }
.cart-item-domain { font-weight: 600; font-size: .875rem; }
.cart-item-th     { font-size: .8rem; color: var(--text-muted); }
.cart-item-price  { font-size: .875rem; font-weight: 600; white-space: nowrap; }
.cart-item-remove { background: none; border: none; cursor: pointer; color: var(--text-muted); font-size: .9rem; padding: .15rem; }
.cart-item-remove:hover { color: var(--danger); }
.cart-sensitive-toggle { margin-top: .4rem; display: flex; align-items: center; gap: .35rem; font-size: .78rem; color: var(--text-secondary); cursor: pointer; }
.cart-sensitive-toggle input { cursor: pointer; }
.cart-footer { padding: 1rem 1.25rem; border-top: 1px solid var(--border); flex-shrink: 0; }
.cart-totals { margin-bottom: .75rem; }
.cart-total-row { display: flex; justify-content: space-between; font-size: .875rem; color: var(--text-secondary); margin-bottom: .3rem; }
.cart-total-row.total { font-weight: 700; font-size: 1rem; color: var(--text-primary); }
.cart-empty-msg { text-align: center; color: var(--text-muted); font-size: .875rem; padding: 1.5rem 0; }

/* Bouton flottant panier */
.cart-float-btn {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 91;
  background: var(--primary); color: white;
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(37,99,235,.4); cursor: pointer; border: none;
  transition: transform var(--transition), box-shadow var(--transition);
}
.cart-float-btn:hover { transform: scale(1.05); box-shadow: 0 6px 18px rgba(37,99,235,.5); }
.cart-float-btn .cart-count {
  position: absolute; top: -4px; right: -4px;
  background: var(--danger); color: white; border-radius: 999px;
  min-width: 20px; height: 20px; font-size: .72rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; padding: 0 .25rem;
}

/* --- Forms --- */
.form-group    { margin-bottom: 1.25rem; }
.form-label    { display: block; font-size: .875rem; font-weight: 600; margin-bottom: .4rem; }
.form-label .optional { font-weight: 400; color: var(--text-muted); font-size: .8rem; }
.form-control  {
  width: 100%; padding: .625rem .875rem; border: 1px solid var(--border); border-radius: var(--radius);
  font-size: .9rem; background: white; color: var(--text-primary);
  transition: border-color var(--transition), box-shadow var(--transition);
  font-family: var(--font);
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.form-control.is-invalid { border-color: var(--danger); }
.invalid-feedback { font-size: .8rem; color: var(--danger); margin-top: .25rem; }
textarea.form-control { min-height: 100px; resize: vertical; }
.form-check    { display: flex; align-items: center; gap: .5rem; cursor: pointer; }
.form-check input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; accent-color: var(--primary); }
.form-check-label { font-size: .875rem; cursor: pointer; }

/* Radio type compte */
.type-selector { display: flex; gap: .75rem; margin-bottom: 1.25rem; }
.type-option   { flex: 1; }
.type-option input { position: absolute; opacity: 0; }
.type-option label {
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .625rem 1rem; border: 1.5px solid var(--border); border-radius: var(--radius);
  cursor: pointer; font-size: .875rem; font-weight: 600; transition: all var(--transition);
}
.type-option input:checked + label { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }

/* --- Auth pages --- */
.auth-page   { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg); padding: 2rem 1rem; }
.auth-card   { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2.5rem; width: 100%; max-width: 460px; box-shadow: var(--shadow-md); }
.auth-logo   { text-align: center; margin-bottom: 1.75rem; }
.auth-logo a { font-size: 1.25rem; font-weight: 800; color: var(--text-primary); text-decoration: none; }
.auth-logo span { color: var(--primary); }
.auth-title  { font-size: 1.5rem; font-weight: 700; margin-bottom: .5rem; }
.auth-sub    { font-size: .9rem; color: var(--text-secondary); margin-bottom: 1.75rem; }
.auth-footer { margin-top: 1.25rem; font-size: .875rem; text-align: center; color: var(--text-secondary); }

/* --- Alert --- */
.alert { padding: .875rem 1.125rem; border-radius: var(--radius); font-size: .875rem; margin-bottom: 1.25rem; }
.alert-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-success { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.alert-info    { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
.alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }

/* --- Card générique --- */
.card { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.card-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); }
.card-header h2 { font-size: 1.1rem; font-weight: 700; }
.card-body    { padding: 1.5rem; }

/* --- Dashboard client --- */
.dashboard-layout { display: grid; grid-template-columns: 240px 1fr; gap: 1.5rem; padding: 2rem 0; align-items: start; }
.dash-sidebar { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; position: sticky; top: 80px; }
.dash-nav     { list-style: none; }
.dash-nav li  { margin-bottom: .25rem; }
.dash-nav a   { display: flex; align-items: center; gap: .6rem; padding: .6rem .875rem; border-radius: var(--radius); font-size: .9rem; font-weight: 500; color: var(--text-secondary); text-decoration: none; transition: all var(--transition); }
.dash-nav a:hover, .dash-nav a.active { background: var(--primary-light); color: var(--primary); }
.orders-table-wrap { overflow-x: auto; }
.orders-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.orders-table th { background: var(--bg); padding: .75rem 1rem; text-align: left; font-size: .8rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; border-bottom: 1px solid var(--border); }
.orders-table td { padding: .875rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.orders-table tr:last-child td { border-bottom: none; }

/* --- Brief page --- */
.brief-page  { max-width: 760px; margin: 0 auto; padding: 2rem 1rem; }
.brief-items { display: flex; flex-direction: column; gap: 1.5rem; }
.brief-item  { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; }
.brief-item-header { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem; padding-bottom: .875rem; border-bottom: 1px solid var(--border); }
.brief-item-title  { font-weight: 700; }
.brief-item-domain { font-size: .875rem; color: var(--text-muted); }

/* --- Success page --- */
.success-page  { max-width: 580px; margin: 4rem auto; text-align: center; padding: 0 1rem; }
.success-icon  { width: 72px; height: 72px; background: #dcfce7; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; font-size: 2rem; }
.success-page h1 { font-size: 1.75rem; font-weight: 700; margin-bottom: .75rem; }
.success-page p  { color: var(--text-secondary); margin-bottom: 1.5rem; }

/* --- Admin --- */
.admin-layout { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.admin-sidebar { background: #1e293b; color: white; padding: 1.5rem 1rem; }
.admin-logo    { font-size: 1rem; font-weight: 700; margin-bottom: 2rem; padding: .75rem; color: white; }
.admin-logo span { color: var(--accent); }
.admin-nav     { list-style: none; }
.admin-nav li  { margin-bottom: .25rem; }
.admin-nav a   { display: flex; align-items: center; gap: .6rem; padding: .6rem .875rem; border-radius: var(--radius); font-size: .875rem; color: #94a3b8; text-decoration: none; transition: all var(--transition); }
.admin-nav a:hover, .admin-nav a.active { background: rgba(255,255,255,.1); color: white; }
.admin-content { padding: 2rem; background: var(--bg); overflow-y: auto; }
.admin-header  { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.admin-header h1 { font-size: 1.5rem; font-weight: 700; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; }
.stat-label { font-size: .8rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .4rem; }
.stat-value { font-size: 1.75rem; font-weight: 800; color: var(--text-primary); }
.stat-sub   { font-size: .8rem; color: var(--text-muted); margin-top: .25rem; }

/* --- Footer --- */
footer { background: white; border-top: 1px solid var(--border); padding: 2.5rem 0; margin-top: 4rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-brand { font-weight: 700; font-size: .95rem; color: var(--text-primary); }
.footer-brand span { color: var(--primary); }
.footer-links { display: flex; gap: 1.5rem; list-style: none; }
.footer-links a { font-size: .875rem; color: var(--text-secondary); text-decoration: none; }
.footer-links a:hover { color: var(--primary); }
.footer-copy  { font-size: .8rem; color: var(--text-muted); }

/* --- Utilities --- */
.text-center   { text-align: center; }
.text-muted    { color: var(--text-muted); }
.text-success  { color: var(--success); }
.text-danger   { color: var(--danger); }
.text-primary  { color: var(--primary); }
.font-bold     { font-weight: 700; }
.mt-1 { margin-top: .25rem; } .mt-2 { margin-top: .5rem; } .mt-3 { margin-top: .75rem; } .mt-4 { margin-top: 1rem; }
.mb-1 { margin-bottom: .25rem; } .mb-2 { margin-bottom: .5rem; } .mb-3 { margin-bottom: .75rem; } .mb-4 { margin-bottom: 1rem; }
.d-flex { display: flex; } .align-center { align-items: center; } .gap-2 { gap: .5rem; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.divider { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .catalogue-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
  .dashboard-layout { grid-template-columns: 1fr; }
}
/* Cartes mobile catalogue */
.sites-mobile-cards { display: none; flex-direction: column; gap: .75rem; }
.site-card { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.site-card-header { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .9rem 1rem; cursor: pointer; user-select: none; }
.site-card-header:active { background: var(--bg); }
.site-card-info { flex: 1; min-width: 0; }
.site-card-domain { font-weight: 600; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-card-meta { display: flex; gap: .35rem; margin-top: .3rem; flex-wrap: wrap; }
.site-card-right { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.site-card-price { font-size: .9rem; color: var(--primary); white-space: nowrap; }
.site-card-chevron { transition: transform .2s ease; flex-shrink: 0; color: var(--text-muted); }
.site-card-metrics { display: none; border-top: 1px solid var(--border); padding: .75rem 1rem; background: var(--bg); flex-direction: column; gap: .5rem; }
.site-card-metrics.open { display: flex; }
.site-card-metric-row { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; }
.site-card-metric-row span:first-child { color: var(--text-muted); }
.site-card-footer { padding: .75rem 1rem; border-top: 1px solid var(--border); }

@media (max-width: 768px) {
  .process-grid { grid-template-columns: 1fr; }
  .process-card::after { content: '↓'; right: 50%; bottom: -1.25rem; top: auto; transform: translateX(50%); }
  .testi-grid   { grid-template-columns: 1fr; }
  .navbar-inner { flex-wrap: wrap; height: auto; min-height: 64px; }
  .navbar-nav   { display: none; flex-direction: column; width: 100%; order: 10; border-top: 1px solid var(--border); padding: .5rem 0; gap: 0; }
  .navbar-nav.open { display: flex; }
  .navbar-toggle { display: flex; }
  .cart-label { display: none; }
  .admin-layout  { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .cart-sidebar  { width: 100%; right: 0; bottom: 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .stat-grid     { grid-template-columns: 1fr 1fr; }
  /* Catalogue : masquer table, afficher cartes */
  .sites-table-wrap  { display: none; }
  .sites-mobile-cards { display: flex; }
  .catalogue-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .stat-grid    { grid-template-columns: 1fr; }
  .auth-card    { padding: 1.5rem; }
}
