/* ============================================================
   Marketplace - Design professionnel
   Palette : bleu marine #0f172a, or #f59e0b, gris clair #f8fafc
   ============================================================ */
:root {
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --text: #1f2937;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --primary: #0f172a;
  --primary-hover: #1e293b;
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --danger: #dc2626;
  --danger-hover: #b91c1c;
  --secondary: #6b7280;
  --secondary-hover: #4b5563;
  --success: #16a34a;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 10px 20px rgba(0, 0, 0, 0.1);
  --radius: 12px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Header */
.site-header {
  background: #0f172a;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.2s ease;
}
.site-header.scrolled { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25); }
.site-header h1 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
}
.site-header h1 .dot { color: #f59e0b; }
.site-header nav {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  align-items: center;
}
.site-header nav a {
  text-decoration: none;
  color: #cbd5e1;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.92rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.site-header nav a:hover {
  color: #ffffff;
  border-bottom-color: #f59e0b;
  background: rgba(255, 255, 255, 0.05);
}
.site-header nav a.active {
  color: #ffffff;
  border-bottom-color: #f59e0b;
  font-weight: 600;
}

/* Layout */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: grid;
  gap: 1.5rem;
}

/* Cartes */
.card, .produit-card, .stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover, .produit-card:hover, .stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.card h2 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: #0f172a;
}

/* Listes */
.entity-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.entity-list li {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fafbfc;
  font-size: 0.92rem;
}
.entity-list li .name { font-weight: 600; }
.entity-list li .meta { color: var(--text-muted); font-size: 0.85rem; }
.entity-list li.loading, .entity-list li.empty {
  color: var(--text-muted);
  font-style: italic;
  background: transparent;
  border-style: dashed;
}

/* Formulaires */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  align-items: end;
}
.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}
.form-grid input, .form-grid select,
input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="tel"], select, textarea {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-grid input:focus, .form-grid select:focus,
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}
.form-row { display: flex; gap: 0.5rem; align-items: end; flex-wrap: wrap; }

/* Boutons */
.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12); }
.btn:active { transform: translateY(0); }
.btn-primary { background: #f59e0b; color: #0f172a; }
.btn-primary:hover { background: #d97706; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: var(--danger-hover); }
.btn-secondary {
  background: transparent;
  color: #0f172a;
  border: 2px solid #0f172a;
}
.btn-secondary:hover { background: rgba(15, 23, 42, 0.06); }
.btn-small { padding: 0.35rem 0.7rem; font-size: 0.8rem; }
.btn-small:disabled {
  background: var(--border);
  color: var(--text-muted);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Messages */
.message { margin: 0.75rem 0 0; font-size: 0.88rem; min-height: 1.2em; }
.message-success, .message.success { color: var(--success); font-weight: 500; }
.message-error, .message.error { color: var(--danger); font-weight: 500; }

/* Tables */
.table-wrapper { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.data-table th, .data-table td {
  text-align: left;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--border);
}
.data-table th {
  font-weight: 600;
  color: #ffffff;
  background: #0f172a;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.data-table tbody tr:nth-child(even) { background: #f8fafc; }
.data-table tbody tr:hover { background: #f1f5f9; }
.data-table td.loading, .data-table td.empty {
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
}
.actions { display: flex; gap: 0.4rem; flex-wrap: wrap; }

/* Badges */
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  text-transform: capitalize;
}
.badge.en_attente { background: #f59e0b; }
.badge.en_transit { background: #2563eb; }
.badge.livree { background: #16a34a; }
.badge.annulee { background: #9ca3af; }

/* Auth */
.auth-form { max-width: 400px; margin: 2rem auto; width: 100%; }
.auth-form h2 { text-align: center; margin-bottom: 1.25rem; }
.auth-form form { display: flex; flex-direction: column; gap: 1rem; }
.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}
.auth-form button { margin-top: 0.25rem; width: 100%; }
.auth-alt { margin-top: 1rem; text-align: center; font-size: 0.88rem; color: var(--text-muted); }
.auth-alt a { color: #0f172a; text-decoration: none; font-weight: 600; }
.auth-alt a:hover { text-decoration: underline; color: #f59e0b; }
.auth-nav { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
.auth-nav a {
  text-decoration: none;
  color: #cbd5e1;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  transition: color 0.2s ease, background 0.2s ease;
}
.auth-nav a:hover { color: #ffffff; background: rgba(255, 255, 255, 0.05); }
.user-badge {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.12);
  color: var(--success);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Controle d'acces */
body:not(.can-write) .write-only { display: none !important; }

/* Produits */
.filtres {
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1.25rem;
}
.produits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.produit-card { display: flex; flex-direction: column; gap: 0.5rem; }
.produit-card h3 { margin: 0; font-size: 1.1rem; font-weight: 700; color: var(--text); }
.produit-card .description { margin: 0; color: var(--text-muted); font-size: 0.9rem; flex-grow: 1; }
.produit-card .prix { margin: 0; color: var(--success); font-size: 1.4rem; font-weight: 700; }
.produit-card .stock { margin: 0; color: var(--text-muted); font-size: 0.8rem; }
.badge-categorie {
  display: inline-block;
  align-self: flex-start;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  text-transform: capitalize;
  background: var(--secondary);
}
.badge-categorie.alimentaire { background: #16a34a; }
.badge-categorie.electronique { background: #2563eb; }
.badge-categorie.vetement { background: #db2777; }
.badge-categorie.autre { background: #6b7280; }
.produit-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.5rem; }
.produits-grid .loading, .produits-grid .empty {
  color: var(--text-muted);
  font-style: italic;
  grid-column: 1 / -1;
}

/* Panier */
#panier-compteur {
  display: inline-block;
  min-width: 1.2em;
  padding: 0.1rem 0.45rem;
  margin-left: 0.25rem;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.4;
}
.panier-table { width: 100%; }
.panier-table input.panier-quantite {
  width: 60px;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: inherit;
}
.panier-recap {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.panier-total { margin: 0; font-size: 1.4rem; font-weight: 700; color: var(--text); }
.commande-lignes { list-style: none; padding: 0; margin: 0; font-size: 0.85rem; }
.commande-lignes li { margin: 2px 0; }

/* Checkout */
.checkout-steps { display: flex; gap: 0.5rem; margin: 0 0 1.5rem; flex-wrap: wrap; }
.checkout-steps .step {
  padding: 0.5rem 0.9rem;
  border-bottom: 3px solid transparent;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}
.checkout-steps .step.active {
  color: #0f172a;
  font-weight: 700;
  border-bottom-color: #f59e0b;
}
.checkout-nav { display: flex; justify-content: space-between; margin-top: 1.5rem; gap: 1rem; }
.card-selectable {
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: 2px solid var(--border);
}
.card-selectable.selected {
  border: 3px solid #f59e0b;
  background: rgba(245, 158, 11, 0.06);
}
.adresse-input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  margin-top: 0.35rem;
}
.adresse-label {
  display: block;
  margin: 1rem 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}
.checkout-recap p { margin: 0.35rem 0; }

/* Messagerie */
.conv-commande-info { font-size: 0.95rem; color: var(--text-muted); }
.conv-commande-info a { color: #0f172a; text-decoration: none; font-weight: 600; }
.conv-commande-info a:hover { text-decoration: underline; color: #f59e0b; }
.conv-fil {
  min-height: 200px;
  max-height: 500px;
  overflow-y: auto;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fafbfc;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.conv-message-item {
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
}
.conv-message-item.mine {
  background: rgba(245, 158, 11, 0.1);
  margin-left: auto;
  text-align: right;
  max-width: 80%;
}
.conv-auteur { font-weight: 700; font-size: 0.88rem; color: var(--text); }
.conv-date { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.25rem; }
.conv-contenu { margin: 0.25rem 0 0; font-size: 0.92rem; white-space: pre-wrap; word-break: break-word; }
.conv-form { display: flex; flex-direction: column; gap: 0.75rem; }
.conv-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}
.conv-form textarea { width: 100%; min-height: 80px; resize: vertical; }
#messages-compteur {
  display: inline-block;
  min-width: 1.2em;
  padding: 0.1rem 0.45rem;
  margin-left: 0.25rem;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.4;
}
.messages-list { display: flex; flex-direction: column; gap: 0.75rem; }
.message-entry {
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fafbfc;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.message-entry-header { display: flex; align-items: center; gap: 0.5rem; }
.message-entry-id { font-weight: 700; font-size: 0.95rem; }
.message-entry-last { font-size: 0.88rem; color: var(--text-muted); }
.badge-non-lu {
  display: inline-block;
  min-width: 1.2em;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
}

/* Dashboard */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.stat-value { font-size: 2rem; font-weight: bold; color: #0f172a; line-height: 1.1; }
.stat-label { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }
.top-produits {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.9rem;
}

/* Visibilite par role */
.staff-only { display: none; }
body.staff .staff-only { display: inline-block; }
.form-hidden { display: none; }
.transitaire-only, .livreur-only, .admin-only { display: none; }
body.can-write.role-transitaire .transitaire-only,
body.can-write.role-livreur .livreur-only,
body.can-write.role-admin .admin-only,
body.role-transitaire .transitaire-only,
body.role-livreur .livreur-only,
body.role-admin .admin-only { display: block; }
.client-only { display: none; }
body.client-or-admin .client-only { display: inline-block; }

/* Footer */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 40px 20px 20px;
  margin-top: 60px;
}
.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-col h4 {
  color: #f59e0b;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin: 6px 0; font-size: 0.9rem; }
.footer-col a { color: #cbd5e1; text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: #f59e0b; }
.footer-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.footer-logo .dot { color: #f59e0b; }
.footer-desc { font-size: 0.85rem; line-height: 1.6; color: #94a3b8; }
.footer-bottom {
  border-top: 1px solid #1e293b;
  margin-top: 30px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.8rem;
  color: #64748b;
}

/* Responsive */
@media (max-width: 768px) {
  .site-header { padding: 1rem; flex-direction: column; align-items: flex-start; }
  .site-header nav { flex-direction: column; width: 100%; gap: 0.25rem; }
  .site-header nav a { width: 100%; padding: 0.6rem 0.75rem; }
  .container { padding: 1rem; grid-template-columns: 1fr; }
  .card { padding: 1rem; }
  .produits-grid, .stats-grid { grid-template-columns: 1fr; }
  .filtres { flex-direction: column; align-items: stretch; }
  .filtres input, .filtres select, .filtres button { width: 100%; }
  .footer-content { grid-template-columns: 1fr; text-align: center; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

/* ============================================================
   Emplacements publicitaires
   ============================================================ */
.ads-top { max-width: 728px; height: 90px; margin: 20px auto; background: #f1f5f9; border: 2px dashed #cbd5e1; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #64748b; font-size: 0.9rem; text-align: center; padding: 10px; transition: all 0.2s; }
.ads-top:hover { background: #e2e8f0; border-color: #f59e0b; }
.ads-top a { color: #64748b; text-decoration: none; font-weight: 600; }
.ads-sidebar { width: 300px; height: 250px; background: #f1f5f9; border: 2px dashed #cbd5e1; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #64748b; font-size: 0.9rem; text-align: center; padding: 10px; margin-bottom: 20px; transition: all 0.2s; }
.ads-sidebar:hover { background: #e2e8f0; border-color: #f59e0b; }
.ads-sidebar a { color: #64748b; text-decoration: none; font-weight: 600; }
.ads-inline { max-width: 728px; height: 90px; margin: 30px auto; background: #fef3c7; border: 2px dashed #f59e0b; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #92400e; font-size: 0.9rem; text-align: center; padding: 10px; transition: all 0.2s; }
.ads-inline:hover { background: #fde68a; }
.ads-inline a { color: #92400e; text-decoration: none; font-weight: 600; }
.ads-footer { max-width: 728px; height: 90px; margin: 20px auto; background: #0f172a; border: 2px dashed #334155; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #94a3b8; font-size: 0.9rem; text-align: center; padding: 10px; }
.ads-footer a { color: #f59e0b; text-decoration: none; font-weight: 600; }
.ads-label { position: absolute; top: 4px; right: 8px; font-size: 0.7rem; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.05em; }
.ads-wrapper { position: relative; }
.ads-grid-layout { display: grid; grid-template-columns: 1fr 320px; gap: 30px; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
@media (max-width: 768px) { .ads-grid-layout { grid-template-columns: 1fr; } .ads-sidebar { width: 100%; } .ads-top, .ads-inline, .ads-footer { max-width: 100%; } }

/* ============================================================
   Publicites (dashboard admin)
   ============================================================ */
.publicite-card {
  background: #fff;
  border: 2px solid #d4af37;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.publicite-card h4 {
  margin: 0;
  color: #333;
  font-size: 1.1rem;
}

.publicite-card .prix {
  font-size: 1.6rem;
  font-weight: bold;
  color: #d4af37;
}

.dashboard-publicites {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

/* Bouton de deconnexion - visible sur fond bleu marine */
#btn-logout {
  background: #dc2626 !important;
  color: #ffffff !important;
  border: none !important;
  padding: 8px 16px !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  transition: background 0.2s, transform 0.1s !important;
}
#btn-logout:hover {
  background: #b91c1c !important;
  transform: translateY(-1px) !important;
}

/* Badge utilisateur */
.user-badge {
  background: #f59e0b !important;
  color: #0f172a !important;
  padding: 6px 12px !important;
  border-radius: 6px !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
}

/* Forcer la visibilite du bouton dans la nav */
.site-header #btn-logout {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
}


/* Bouton WhatsApp */
.btn-whatsapp {
  background: #25D366;
  color: white;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  margin-top: 6px;
}
.btn-whatsapp:hover { background: #1da851; }
.whatsapp-hint {
  color: #888;
  font-size: 0.85em;
  font-style: italic;
}
.vendeur-line {
  font-size: 0.9em;
  color: #555;
  margin: 4px 0;
}

/* ============================================================
   Avis vendeurs (etoiles)
   ============================================================ */
.stars { color: #f5b301; font-size: 1.1em; letter-spacing: 1px; }
.stars-empty { color: #ddd; }
.avis-card { border: 1px solid #eee; border-radius: 8px; padding: 12px; margin-bottom: 10px; }
.avis-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.avis-auteur { font-weight: 600; font-size: 0.9rem; color: #0f172a; }
.avis-date { font-size: 0.78rem; color: #6b7280; }
.avis-commentaire { margin: 4px 0 0; font-size: 0.92rem; color: #1f2937; white-space: pre-wrap; }
.vendeur-note-inline { font-size: 0.85em; color: #6b7280; margin-left: 6px; }
.top-vendeurs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.top-vendeur-card { border: 1px solid #eee; border-radius: 8px; padding: 12px; background: #fff; }
.top-vendeur-card .nom { font-weight: 700; color: #0f172a; }
.top-vendeur-card .ville { font-size: 0.85rem; color: #6b7280; }

/* Modal avis */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(15, 23, 42, 0.55);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; padding: 1rem;
}
.modal-box {
  background: #fff; border-radius: 12px; padding: 1.5rem;
  max-width: 480px; width: 100%; box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}
.modal-box h3 { margin: 0 0 1rem; color: #0f172a; }
.modal-box label { display: block; margin: 0.75rem 0 0.35rem; font-size: 0.85rem; color: #6b7280; font-weight: 500; }
.modal-box textarea { width: 100%; min-height: 90px; resize: vertical; }
.etoiles-cliquables { font-size: 2rem; color: #ddd; cursor: pointer; user-select: none; letter-spacing: 4px; }
.etoiles-cliquables .etoile.active { color: #f5b301; }
.modal-actions { display: flex; gap: 0.5rem; justify-content: flex-end; margin-top: 1rem; }

/* ============================================================
   Accueil : Hero section (chantier E)
   ============================================================ */
.hero-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff; padding: 4rem 2rem; text-align: center;
  border-radius: 12px; margin-bottom: 2rem;
}
.hero-title { font-size: 2.5rem; font-weight: 800; margin: 0 0 1rem; }
.hero-subtitle { font-size: 1.2rem; opacity: 0.85; margin: 0 0 2rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-large { padding: 1rem 2rem; font-size: 1.05rem; }
@media (max-width: 768px) {
  .hero-title { font-size: 1.8rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-section { padding: 2rem 1rem; }
}


/* ============================================================
   Accueil : categories (chantier F)
   ============================================================ */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; margin-top: 1rem; }
.categorie-card { display: flex; flex-direction: column; align-items: center; padding: 1.5rem 1rem; background: #ffffff; border: 1px solid #e5e7eb; border-radius: 10px; text-decoration: none; color: #1f2937; transition: all 0.2s; text-align: center; }
.categorie-card:hover { border-color: #f59e0b; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.categorie-emoji { font-size: 2.5rem; margin-bottom: 0.5rem; }
.categorie-nom { font-weight: 600; font-size: 0.95rem; }


/* ============================================================
   Accueil : produits en vedette (chantier G)
   ============================================================ */
.promo-badge { position: absolute; top: 8px; left: 8px; background: #dc2626; color: white; padding: 4px 10px; border-radius: 20px; font-weight: 700; font-size: 0.85rem; z-index: 1; }
.prix-barre { text-decoration: line-through; color: #6b7280; font-size: 0.9rem; margin-right: 8px; }
.produit-card { position: relative; }
.produit-image { width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; background: #f1f5f9; }
.produit-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.produit-info { display: flex; flex-direction: column; gap: 0.5rem; }
.produit-info h3 { margin: 0; font-size: 1rem; font-weight: 700; color: #1f2937; }
.produit-prix { margin: 0; font-size: 1.1rem; color: #16a34a; }


/* ============================================================
   Accueil : temoignages (chantier I)
   ============================================================ */
.temoignages-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; margin-top: 1rem; }
.temoignage-card { background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 10px; padding: 1.25rem; }
.temoignage-stars { color: #f59e0b; font-size: 1.1rem; margin-bottom: 0.5rem; }
.temoignage-commentaire { font-style: italic; color: #1f2937; margin: 0.5rem 0; }
.temoignage-auteur { color: #6b7280; font-size: 0.9rem; text-align: right; }


/* ============================================================
   Accueil : services (chantier J)
   ============================================================ */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin: 2rem 0; }
.service-card { background: #ffffff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 1.5rem 1rem; text-align: center; transition: all 0.2s; }
.service-card:hover { border-color: #f59e0b; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.service-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.service-card h3 { margin: 0 0 0.5rem; font-size: 1.05rem; color: #0f172a; }
.service-card p { margin: 0; color: #6b7280; font-size: 0.9rem; }

.produit-image-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: #cbd5e1;
  background: #f1f5f9;
}


.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.password-wrapper input {
  width: 100%;
  padding-right: 44px;
  flex: 1 1 auto;
  min-width: 0;
}

.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  font-size: 1.1rem;
  color: #6b7280;
  border-radius: 6px;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  max-width: 32px;
  max-height: 32px;
  flex: 0 0 32px;
  box-sizing: border-box;
}

.password-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #0f172a;
}

.password-toggle:focus {
  outline: 2px solid #f59e0b;
  outline-offset: 2px;
}

.eye-icon {
  font-size: 1.1rem;
  user-select: none;
  pointer-events: none;
}

@media (max-width: 768px) {
  .password-toggle {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    max-width: 40px;
    max-height: 40px;
    flex: 0 0 40px;
  }
}


/* ============================================================
   Boutons de la Hero section (contraste sur fond sombre)
   ============================================================ */
.hero-section .btn-primary {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0f172a;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
  border: none;
  transition: all 0.2s ease;
}

.hero-section .btn-primary:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6);
  transform: translateY(-2px);
}

.hero-section .btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
  font-weight: 600;
  transition: all 0.2s ease;
}

.hero-section .btn-secondary:hover {
  background: #ffffff;
  color: #0f172a;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .hero-section .btn-primary,
  .hero-section .btn-secondary {
    width: 100%;
  }
}


/* ============================================================
   Footer professionnel
   ============================================================ */
.footer-brand { max-width: 320px; }

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin: 1rem 0;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transition: all 0.2s;
}

.social-link:hover {
  background: #f59e0b;
  color: #0f172a;
  transform: translateY(-2px);
}

.footer-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.stat-item strong {
  font-size: 1.25rem;
  color: #f59e0b;
}

.stat-item span {
  font-size: 0.75rem;
  color: #94a3b8;
}

.footer-payment {
  margin-top: 0.5rem;
}

.payment-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 8px;
  color: #f59e0b;
  font-weight: 600;
}

.pi-icon { font-size: 1.25rem; }

.payment-desc {
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 0.5rem 0 0;
}

.powered-by {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0.25rem 0 0;
  font-style: italic;
}

.footer-newsletter {
  max-width: 600px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 12px;
  text-align: center;
}

.footer-newsletter h4 {
  margin: 0 0 0.5rem;
  color: #ffffff;
}

.footer-newsletter p {
  margin: 0 0 1rem;
  color: #94a3b8;
  font-size: 0.9rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  max-width: 450px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 0.95rem;
}

.newsletter-form input::placeholder {
  color: #64748b;
}

.newsletter-form input:focus {
  outline: none;
  border-color: #f59e0b;
}

.footer-legal {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem;
  font-size: 0.85rem;
  color: #64748b;
}

.footer-legal a {
  color: #94a3b8;
  text-decoration: none;
}

.footer-legal a:hover {
  color: #f59e0b;
}

@media (max-width: 768px) {
  .newsletter-form {
    flex-direction: column;
  }

  .footer-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ============================================================
   Enrichissement pages principales (produits, vendeurs, commandes)
   ============================================================ */
.catalogue-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.compteur {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 600;
}

.filtres-avances {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  padding: 1.25rem;
  background: #f8fafc;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  border: 1px solid #e5e7eb;
}

.filtre-groupe {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.filtre-groupe label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1f2937;
}

.filtre-groupe input,
.filtre-groupe select {
  padding: 0.5rem 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 0.9rem;
  background: #ffffff;
  color: #1f2937;
}

.filtre-groupe input:focus,
.filtre-groupe select:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.commandes-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.commandes-stats .stat-card {
  text-align: center;
  padding: 1rem;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}

.commandes-stats .stat-card strong {
  display: block;
  font-size: 1.5rem;
  color: #f59e0b;
}

.commandes-stats .stat-card span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.badge-statut {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-statut.en_attente { background: #fef3c7; color: #92400e; }
.badge-statut.en_transit { background: #dbeafe; color: #1e40af; }
.badge-statut.livree { background: #d1fae5; color: #065f46; }
.badge-statut.annulee { background: #fee2e2; color: #991b1b; }

.badge-nouveau {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #10b981;
  color: white;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 1;
}

.table-container {
  overflow-x: auto;
  border-radius: 8px;
}

.vendeur-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
}

.vendeur-card h3 {
  margin: 0;
  color: #0f172a;
}

.vendeur-card .vendeur-ville {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.vendeur-card .vendeur-note {
  color: #f59e0b;
  font-size: 1.1rem;
}

.vendeur-card .vendeur-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .filtres-avances {
    grid-template-columns: 1fr;
  }
  .catalogue-header {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ============================================================
   Pages Comment commander, FAQ, Contact
   ============================================================ */
.page-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  text-align: center;
}

.etapes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.etape-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
  transition: all 0.2s;
}

.etape-card:hover {
  border-color: #f59e0b;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.etape-numero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  border-radius: 50%;
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.etape-card h3 {
  margin: 0 0 0.75rem;
  color: #0f172a;
  font-size: 1.15rem;
}

.etape-card p {
  margin: 0 0 0.75rem;
  color: #6b7280;
  line-height: 1.6;
}

.etape-note {
  font-size: 0.9rem;
  color: #f59e0b;
  font-weight: 600;
  margin-top: 0.5rem;
}

.highlight-box {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(245, 158, 11, 0.02) 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  margin-top: 2rem;
}

.highlight-box h3 { color: #0f172a; margin-top: 0; }
.highlight-box ul { margin: 0.5rem 0 0; padding-left: 1.5rem; color: #1f2937; }
.highlight-box li { margin: 0.4rem 0; }

/* FAQ */
.faq-categorie {
  margin: 2rem 0 1rem;
  color: #0f172a;
  font-size: 1.2rem;
  border-bottom: 2px solid #f59e0b;
  padding-bottom: 0.5rem;
  display: inline-block;
}

.faq-item {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: all 0.2s;
}

.faq-item[open] {
  border-color: #f59e0b;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.faq-item summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  color: #1f2937;
  list-style: none;
  position: relative;
  padding-right: 3rem;
  transition: background 0.2s;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: #f59e0b;
  font-weight: 300;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: '−';
  transform: translateY(-50%) rotate(180deg);
}

.faq-item summary:hover { background: #f8fafc; }

.faq-item p {
  margin: 0;
  padding: 0 1.25rem 1.25rem;
  color: #6b7280;
  line-height: 1.6;
  border-top: 1px solid #f1f5f9;
  padding-top: 1rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.contact-info h3,
.contact-form-container h3 {
  margin: 0 0 1.25rem;
  color: #0f172a;
  font-size: 1.15rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  padding: 0.75rem 0;
  align-items: flex-start;
}

.contact-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  color: #0f172a;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.contact-item p {
  margin: 0;
  color: #6b7280;
}

.contact-item a {
  color: #f59e0b;
  text-decoration: none;
  font-weight: 600;
}

.contact-item a:hover { text-decoration: underline; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-weight: 600;
  color: #1f2937;
  font-size: 0.9rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 0.75rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #ffffff;
  color: #1f2937;
  transition: all 0.2s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.contact-form textarea { resize: vertical; min-height: 120px; }

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
  .etapes-grid { grid-template-columns: 1fr; }
}


/* ============================================================
   Pages legales (mentions, cookies)
   ============================================================ */
.legal-page h3 {
  margin-top: 2rem;
  color: #0f172a;
  font-size: 1.15rem;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 0.5rem;
}

.legal-page h4 {
  margin-top: 1.25rem;
  color: #1f2937;
  font-size: 1rem;
}

.legal-page p {
  line-height: 1.7;
  color: #374151;
  margin: 0.75rem 0;
}

.legal-page ul {
  margin: 0.5rem 0 1rem 1.5rem;
  color: #374151;
  line-height: 1.7;
}

.legal-page li {
  margin: 0.4rem 0;
}

.legal-page a {
  color: #f59e0b;
  font-weight: 600;
  text-decoration: none;
}

.legal-page a:hover {
  text-decoration: underline;
}


/* Logos sociaux colores */
.social-link.social-facebook {
  background: #1877F2;
  color: #ffffff;
}
.social-link.social-facebook:hover {
  background: #0d65d9;
}

.social-link.social-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #ffffff;
}
.social-link.social-instagram:hover {
  opacity: 0.9;
}

.social-link.social-linkedin {
  background: #0A66C2;
  color: #ffffff;
}
.social-link.social-linkedin:hover {
  background: #084d92;
}

/* SVG dans les social-link */
.social-link svg {
  width: 20px;
  height: 20px;
  display: block;
}


/* ============================================================
   Securite (bandeau + modal + page)
   ============================================================ */

/* Bandeau global */
.securite-banner {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0f172a;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 50;
}

.securite-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.securite-icon { font-size: 1.2rem; }
.securite-text { flex: 1; min-width: 200px; }
.securite-link {
  color: #0f172a;
  font-weight: 700;
  text-decoration: underline;
  white-space: nowrap;
}
.securite-link:hover { color: #1e293b; }

.securite-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #0f172a;
  padding: 0 0.5rem;
  line-height: 1;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.securite-close:hover { opacity: 1; }

/* Page securite */
.alerte-securite {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 12px;
  margin: 1.5rem 0;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.02) 100%);
  border: 2px solid #f59e0b;
  align-items: flex-start;
}

.alerte-securite.alerte-danger {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, rgba(220, 38, 38, 0.02) 100%);
  border-color: #dc2626;
}

.alerte-icon { font-size: 2rem; flex-shrink: 0; }
.alerte-content h3 { margin: 0 0 0.5rem; color: #0f172a; }
.alerte-content p { margin: 0.25rem 0; color: #374151; line-height: 1.6; }

.liste-danger, .liste-succes {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0;
}

.liste-danger li, .liste-succes li {
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  border-radius: 8px;
  line-height: 1.5;
}

.liste-danger li {
  background: rgba(220, 38, 38, 0.05);
  border-left: 3px solid #dc2626;
}

.liste-succes li {
  background: rgba(16, 185, 129, 0.05);
  border-left: 3px solid #10b981;
}

.avantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.avantage-card {
  padding: 1.5rem 1rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  text-align: center;
  transition: all 0.2s;
}

.avantage-card:hover {
  border-color: #f59e0b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.avantage-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.avantage-card h4 { margin: 0 0 0.5rem; color: #0f172a; font-size: 1rem; }
.avantage-card p { margin: 0; color: #6b7280; font-size: 0.9rem; line-height: 1.5; }

.etapes-signalement {
  padding-left: 1.5rem;
  margin: 1rem 0;
}

.etapes-signalement li {
  margin: 0.75rem 0;
  line-height: 1.6;
  color: #374151;
}

/* Modal securite */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
}

.modal-securite {
  max-width: 560px;
  width: 100%;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0f172a;
}

.modal-header h3 { margin: 0; font-size: 1.15rem; }

.modal-close {
  background: transparent;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: #0f172a;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover { background: rgba(0, 0, 0, 0.1); }

.modal-body { padding: 1.5rem; }

.modal-alerte {
  padding: 1rem;
  background: rgba(220, 38, 38, 0.05);
  border-left: 3px solid #dc2626;
  border-radius: 8px;
  margin: 1rem 0;
}

.modal-alerte p { margin: 0.5rem 0; color: #374151; }

.modal-checkbox {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-top: 1.25rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 8px;
  cursor: pointer;
  line-height: 1.5;
  font-size: 0.9rem;
}

.modal-checkbox input { margin-top: 0.25rem; flex-shrink: 0; }

.modal-footer {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  padding: 1rem 1.5rem;
  background: #f8fafc;
  border-top: 1px solid #e5e7eb;
}

.modal-footer .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .securite-banner-content { flex-direction: column; text-align: center; }
  .securite-close { position: absolute; top: 0.5rem; right: 0.5rem; }
  .securite-banner { position: relative; padding-right: 2.5rem; }
  .modal-footer { flex-direction: column-reverse; }
  .modal-footer .btn { width: 100%; }
  .avantages-grid { grid-template-columns: 1fr; }
  .alerte-securite { flex-direction: column; }
}
