/* ============================================================
   O'LA MARKET — style.css
   Charte graphique officielle (extraite du logo)
   ============================================================ */

:root {
  --vert-fonce: #0B6B3A;
  --vert-clair: #1B8F4E;
  --orange: #F5A623;
  --orange-fonce: #E88B00;
  --bleu-nuit: #1B2A4A;
  --blanc: #FFFFFF;
  --gris-clair: #F9F9F9;
  --texte: #1A1F1C;
  --texte-clair: #6B7570;
  --ombre: 0 4px 14px rgba(0, 0, 0, 0.08);
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--gris-clair);
  color: var(--texte);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-green {
  color: var(--vert-fonce);
}

/* ============================================================
   BOUTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:hover {
  opacity: 0.92;
}

.btn:active {
  transform: scale(0.97);
}

.btn-orange {
  background: var(--orange);
  color: #201400;
}

.btn-orange:hover {
  background: var(--orange-fonce);
}

.btn-green {
  background: var(--vert-fonce);
  color: var(--blanc);
}

.btn-green:hover {
  background: var(--vert-clair);
}

.btn-navy {
  background: var(--bleu-nuit);
  color: var(--blanc);
}

.btn-navy:hover {
  opacity: 0.9;
}

.btn-sm {
  padding: 9px 18px;
  font-size: 13.5px;
}

.btn-lg {
  padding: 15px 30px;
  font-size: 16px;
}

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--blanc);
  box-shadow: var(--ombre);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}

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

.brand-logo {
  height: 42px;
  width: auto;
}

.brand-name {
  font-weight: 800;
  font-size: 18px;
  color: var(--vert-fonce);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-weight: 600;
  font-size: 14.5px;
}

.main-nav a {
  color: var(--texte);
  opacity: 0.85;
}

.main-nav a:hover {
  opacity: 1;
  color: var(--vert-fonce);
}

.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--orange);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  border-radius: 999px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  margin-left: 3px;
}

.burger {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--bleu-nuit);
}

@media (max-width: 780px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--blanc);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    box-shadow: var(--ombre);
  }
  .main-nav.open {
    display: flex;
  }
  .main-nav a {
    width: 100%;
    padding: 14px 20px;
    border-top: 1px solid #eee;
  }
  .main-nav a.btn {
    margin: 12px 20px;
    width: calc(100% - 40px);
  }
  .burger {
    display: block;
  }
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  background: linear-gradient(180deg, #ffffff 0%, #e9f6ee 100%);
  padding: 64px 0 56px;
  text-align: center;
}

.hero-inner {
  max-width: 780px;
}

.hero-title {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 900;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
  color: var(--bleu-nuit);
}

.hero-subtitle {
  color: var(--orange-fonce);
  font-weight: 700;
  font-size: 17px;
  margin: 0 0 18px;
}

.hero-desc {
  color: var(--texte-clair);
  font-size: 15.5px;
  max-width: 620px;
  margin: 0 auto 30px;
  line-height: 1.75;
}

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

/* ============================================================
   BANNIÈRE HERO ANIMÉE 3D (page d'accueil uniquement)
   ============================================================ */

.hero-3d {
  position: relative;
  overflow: hidden;
  /* Dégradé de base conservé en repli si les animations sont désactivées */
  background: linear-gradient(180deg, #ffffff 0%, #e9f6ee 100%);
}

/* Calque d'arrière-plan : dégradé animé entre les 3 couleurs de la charte.
   Un calque séparé (plutôt que sur .hero-3d directement) permet de garder
   le texte et les boutons dans un contexte d'empilement propre au-dessus. */
.hero-3d-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    120deg,
    #0b6b3a 0%,
    #1b2a4a 35%,
    #f5a623 65%,
    #0b6b3a 100%
  );
  background-size: 300% 300%;
  animation: olaGradientFlow 14s ease-in-out infinite;
  opacity: 0.94;
}

/* Voile clair par-dessus le dégradé pour garder un fond assez lumineux
   (le site utilise un thème clair) tout en laissant deviner les couleurs. */
.hero-3d-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.7) 55%, rgba(233, 246, 238, 0.85) 100%);
}

@keyframes olaGradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Le contenu du hero passe au-dessus du calque animé */
.hero-3d .hero-inner {
  position: relative;
  z-index: 1;
}

/* Effet 3D + flottement du titre. perspective() donne la profondeur,
   rotateX() incline légèrement le texte, et l'animation le fait
   flotter doucement — purement CSS, aucune image, poids nul. */
.hero-title-3d {
  display: inline-block;
  transform-style: preserve-3d;
  transform: perspective(500px) rotateX(5deg);
  animation: float3d 5s ease-in-out infinite;
  text-shadow: 0 6px 18px rgba(27, 42, 74, 0.18), 0 1px 0 rgba(255, 255, 255, 0.6);
}

@keyframes float3d {
  0%, 100% {
    transform: perspective(500px) rotateX(5deg) translateY(0px);
  }
  50% {
    transform: perspective(500px) rotateX(2deg) translateY(-8px);
  }
}

/* Respecte les préférences d'accessibilité : coupe les animations
   pour les personnes qui ont demandé "reduce motion". */
@media (prefers-reduced-motion: reduce) {
  .hero-3d-bg {
    animation: none;
    background-position: 50% 50%;
  }
  .hero-title-3d {
    animation: none;
    transform: none;
  }
}

/* ============================================================
   TRUST BADGES
   ============================================================ */

.trust {
  padding: 46px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.trust-card {
  background: var(--blanc);
  border-radius: var(--radius);
  box-shadow: var(--ombre);
  padding: 24px 18px;
  text-align: center;
}

.trust-icon {
  font-size: 30px;
  display: block;
  margin-bottom: 10px;
}

.trust-card h3 {
  margin: 0 0 4px;
  font-size: 15px;
  color: var(--bleu-nuit);
}

.trust-card p {
  margin: 0;
  font-size: 13px;
  color: var(--texte-clair);
}

@media (max-width: 780px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   SECTION AFRIQUE
   ============================================================ */

.africa {
  background: var(--bleu-nuit);
  color: var(--blanc);
  padding: 60px 0;
  text-align: center;
}

.africa-title {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 8px;
}

.africa-subtitle {
  color: #C7D0DE;
  margin: 0 0 34px;
  font-size: 15px;
}

.africa-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  max-width: 820px;
  margin: 0 auto;
}

.country {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 14px 8px;
  font-size: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.country span {
  font-size: 12px;
  font-weight: 600;
  color: #E7ECF3;
}

.africa-note {
  margin-top: 30px;
  color: var(--orange);
  font-weight: 700;
  font-size: 14.5px;
}

@media (max-width: 780px) {
  .africa-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================================
   NEWSLETTER
   ============================================================ */

.newsletter {
  background: var(--blanc);
  padding: 56px 0;
  text-align: center;
}

.newsletter-inner h2 {
  margin: 0 0 8px;
  font-size: 24px;
  color: var(--bleu-nuit);
}

.newsletter-inner > p {
  color: var(--texte-clair);
  margin: 0 0 24px;
  font-size: 14.5px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  max-width: 460px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.newsletter-form input {
  flex: 1;
  min-width: 220px;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1.5px solid #E2E6E3;
  font-size: 14.5px;
  font-family: inherit;
  outline: none;
}

.newsletter-form input:focus {
  border-color: var(--vert-fonce);
}

.newsletter-msg {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--vert-fonce);
  font-weight: 600;
  min-height: 18px;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--bleu-nuit);
  color: #C7D0DE;
  padding: 26px 0;
  text-align: center;
}

.footer-inner p {
  margin: 4px 0;
  font-size: 13.5px;
}

.footer-slogan {
  color: var(--orange);
  font-weight: 700;
}

/* ============================================================
   WHATSAPP FLOTTANT
   ============================================================ */

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 18px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: #25D366;
  color: var(--blanc);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.4);
  z-index: 60;
}

/* ============================================================
   UTILITAIRES RESPONSIVES GÉNÉRALES
   ============================================================ */

@media (max-width: 480px) {
  .hero {
    padding: 44px 0 40px;
  }
  .trust,
  .africa,
  .newsletter {
    padding: 40px 0;
  }
}

/* ============================================================
   TOASTS (générés par app.js)
   ============================================================ */

.ola-toast {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(-140%);
  background: var(--texte);
  color: var(--blanc);
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  z-index: 100;
  transition: transform 0.25s ease;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.4);
  padding-top: calc(12px + env(safe-area-inset-top, 0px));
}

.ola-toast.show {
  transform: translateX(-50%) translateY(0);
}

.ola-toast.success {
  background: var(--vert-fonce);
}

.ola-toast.error {
  background: #EF4444;
}

/* ============================================================
   BANNIÈRE D'INSTALLATION PWA (générée par app.js)
   ============================================================ */

.ola-pwa-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 76px;
  z-index: 90;
  background: var(--bleu-nuit);
  color: var(--blanc);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 20px 40px -14px rgba(0, 0, 0, 0.5);
}

.ola-pwa-banner-logo {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--blanc);
  padding: 3px;
  flex-shrink: 0;
}

.ola-pwa-banner-text {
  flex: 1;
  font-size: 12.5px;
  line-height: 1.4;
}

.ola-pwa-banner-text b {
  display: block;
  font-size: 13.5px;
}

.ola-pwa-banner-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  padding: 4px;
  cursor: pointer;
}

@media (min-width: 861px) {
  .ola-pwa-banner {
    display: none !important;
  }
}

/* ============================================================
   NAVIGATION MOBILE INFÉRIEURE (utilisée sur les autres pages)
   ============================================================ */

.bottom-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  background: var(--blanc);
  border-top: 1px solid #eee;
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px));
}

.bottom-nav .row {
  display: flex;
  justify-content: space-around;
}

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--texte-clair);
  position: relative;
}

.bottom-nav a.active {
  color: var(--vert-fonce);
}

.bottom-nav .badge {
  position: absolute;
  top: -4px;
  right: 6px;
  background: var(--orange);
  color: var(--blanc);
  font-size: 9px;
  font-weight: 800;
  border-radius: 999px;
  min-width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 860px) {
  .bottom-nav {
    display: block;
  }
  body {
    padding-bottom: 64px;
  }
}

/* ============================================================
   COMPOSANTS PARTAGÉS (market, product, cart, auth, compte)
   ============================================================ */

.page-band {
  background: var(--blanc);
  border-bottom: 1px solid #eee;
  padding: 20px 0;
}

.page-band h1 {
  margin: 0;
  font-size: 22px;
  color: var(--bleu-nuit);
}

.card {
  background: var(--blanc);
  border: 1px solid #eee;
  border-radius: var(--radius);
}

.breadcrumb {
  font-size: 12.5px;
  color: var(--texte-clair);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--vert-fonce);
  font-weight: 600;
}

/* Grille produits */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 960px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

.product-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.product-card:hover {
  box-shadow: var(--ombre);
  transform: translateY(-2px);
}

.product-card .ph {
  aspect-ratio: 1/1;
  background: #E9F6EE;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  position: relative;
}

.product-card .badge-promo {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--orange);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
}

.product-card .body {
  padding: 12px 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.product-card .shop {
  font-size: 11.5px;
  color: var(--texte-clair);
  font-weight: 600;
}

.product-card .name {
  font-size: 13.8px;
  font-weight: 700;
  line-height: 1.3;
  min-height: 36px;
  color: var(--texte);
}

.product-card .pricerow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.product-card .price {
  font-weight: 800;
  color: var(--vert-fonce);
  font-size: 15px;
}

.product-card .price .old {
  color: var(--texte-clair);
  font-weight: 500;
  text-decoration: line-through;
  font-size: 12px;
  margin-right: 5px;
}

.product-card .addbtn {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--vert-fonce);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  border: 0;
  flex-shrink: 0;
  cursor: pointer;
}

/* Filtres marché */
.market-wrap {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 820px) {
  .market-wrap { grid-template-columns: 1fr; }
}

.filter-box {
  padding: 18px;
}

.filter-box h4 {
  font-size: 13.5px;
  margin: 0 0 10px;
  color: var(--bleu-nuit);
}

.filter-box .fg {
  margin-bottom: 20px;
}

.filter-box label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  margin-bottom: 9px;
  color: var(--texte-clair);
  cursor: pointer;
}

.filter-box input[type="checkbox"],
.filter-box input[type="radio"] {
  accent-color: var(--vert-fonce);
  width: 15px;
  height: 15px;
}

.price-range {
  display: flex;
  gap: 8px;
}

.price-range input {
  width: 100%;
  border: 1px solid #E2E6E3;
  border-radius: 8px;
  padding: 7px 9px;
  font-size: 12.5px;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.toolbar select {
  border: 1px solid #E2E6E3;
  border-radius: 9px;
  padding: 8px 12px;
  font-size: 13px;
  background: var(--blanc);
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--texte-clair);
}

.empty-state .big {
  font-size: 48px;
  margin-bottom: 14px;
}

/* Fiche produit */
.product-detail {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 36px;
  align-items: flex-start;
}

@media (max-width: 820px) {
  .product-detail { grid-template-columns: 1fr; }
}

.product-detail .gallery .ph {
  aspect-ratio: 1/1;
  border-radius: 16px;
  font-size: 70px;
}

.product-detail h1 {
  font-size: 23px;
  margin: 8px 0 6px;
  color: var(--bleu-nuit);
}

.price-lg {
  font-size: 27px;
  font-weight: 900;
  color: var(--vert-fonce);
  margin: 14px 0;
}

.price-lg .old {
  color: var(--texte-clair);
  font-weight: 500;
  text-decoration: line-through;
  font-size: 16px;
  margin-right: 8px;
}

.qty-box {
  display: flex;
  align-items: center;
  border: 1.5px solid #E2E6E3;
  border-radius: 10px;
  overflow: hidden;
  width: fit-content;
}

.qty-box button {
  width: 38px;
  height: 38px;
  background: var(--gris-clair);
  border: 0;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}

.qty-box span {
  width: 42px;
  text-align: center;
  font-weight: 700;
}

.seller-box {
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
}

.seller-box .avatar {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--bleu-nuit);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}

/* Panier */
.cart-wrap {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

@media (max-width: 820px) {
  .cart-wrap { grid-template-columns: 1fr; }
}

.cart-item {
  display: flex;
  gap: 14px;
  padding: 14px;
  margin-bottom: 12px;
  align-items: center;
}

.cart-item .ph {
  width: 76px;
  height: 76px;
  border-radius: 11px;
  background: #E9F6EE;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}

.cart-item .info {
  flex: 1;
  min-width: 0;
}

.cart-item .name {
  font-weight: 700;
  font-size: 14px;
}

.cart-item .shop {
  font-size: 12px;
  color: var(--texte-clair);
}

.cart-item .rm {
  color: #EF4444;
  font-size: 12px;
  font-weight: 700;
  margin-top: 6px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.cart-item .right {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.summary-box {
  padding: 20px;
}

.summary-box .row {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  margin-bottom: 10px;
  color: var(--texte-clair);
}

.summary-box .row.total {
  color: var(--texte);
  font-weight: 800;
  font-size: 16px;
  border-top: 1px solid #eee;
  padding-top: 12px;
  margin-top: 6px;
}

/* Formulaires (auth, checkout) */
.form-card {
  padding: 30px;
}

.auth-wrap {
  max-width: 420px;
  margin: 0 auto;
  padding: 50px 0;
}

.field {
  margin-bottom: 15px;
}

.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--texte-clair);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1.5px solid #E2E6E3;
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 14px;
  background: var(--gris-clair);
  font-family: inherit;
  outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--vert-fonce);
}

.role-toggle {
  display: flex;
  border: 1.5px solid #E2E6E3;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 18px;
}

.role-toggle button {
  flex: 1;
  padding: 10px;
  background: var(--gris-clair);
  border: 0;
  font-weight: 700;
  font-size: 13px;
  color: var(--texte-clair);
  cursor: pointer;
  font-family: inherit;
}

.role-toggle button.active {
  background: var(--vert-fonce);
  color: #fff;
}

.form-error {
  color: #EF4444;
  font-size: 13px;
  margin: -6px 0 12px;
}

.form-foot {
  text-align: center;
  font-size: 13px;
  color: var(--texte-clair);
  margin-top: 16px;
}

.form-foot a {
  color: var(--vert-fonce);
  font-weight: 700;
}

.w-full {
  width: 100%;
}

.text-center {
  text-align: center;
}

/* ============================================================
   TABLEAUX DE BORD (vendeur / admin)
   ============================================================ */

.dash-layout {
  display: flex;
  flex-direction: column;
  min-height: 70vh;
}

@media (min-width: 901px) {
  .dash-layout {
    flex-direction: row;
  }
}

.dash-side {
  background: var(--bleu-nuit);
  color: #fff;
  padding: 14px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
}

@media (min-width: 901px) {
  .dash-side {
    flex-direction: column;
    width: 230px;
    flex-shrink: 0;
    padding: 20px 14px;
  }
}

.dash-side .u {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 0 6px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 14px;
}

@media (min-width: 901px) {
  .dash-side .u {
    display: flex;
  }
}

.dash-side .u .av {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--orange);
  color: #201400;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}

.dash-side .u b {
  font-size: 13.5px;
  display: block;
}

.dash-side .u span {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.6);
}

.dash-side a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
}

.dash-side a.active {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.dash-main {
  flex: 1;
  padding: 24px;
  background: var(--gris-clair);
}

.dash-main h1 {
  font-size: 21px;
  margin: 0 0 4px;
  color: var(--bleu-nuit);
}

.dash-main > p.sub {
  color: var(--texte-clair);
  font-size: 13.5px;
  margin: 0 0 22px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

@media (min-width: 640px) {
  .stat-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  padding: 16px;
}

.stat-card .top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.stat-card .ic {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  background: #E9F6EE;
}

.stat-card b {
  font-size: 21px;
  display: block;
  color: var(--texte);
}

.stat-card span.lbl {
  font-size: 12px;
  color: var(--texte-clair);
}

.stat-card .delta {
  font-size: 11.5px;
  font-weight: 700;
  color: #22C55E;
}

.panel {
  padding: 20px;
  margin-bottom: 18px;
}

.panel .phead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 8px;
}

.panel .phead h3 {
  font-size: 15.5px;
  margin: 0;
  color: var(--bleu-nuit);
}

table.dt {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

table.dt th {
  text-align: left;
  color: var(--texte-clair);
  font-weight: 700;
  font-size: 11.5px;
  padding: 8px 8px;
  border-bottom: 1px solid #eee;
}

table.dt td {
  padding: 10px 8px;
  border-bottom: 1px solid #eee;
}

table.dt tr:last-child td {
  border-bottom: 0;
}

.pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  display: inline-block;
  white-space: nowrap;
}

.pill.green { background: #E9F6EE; color: var(--vert-fonce); }
.pill.orange { background: #FDF1DA; color: var(--orange-fonce); }
.pill.red { background: #FDECEC; color: #EF4444; }
.pill.gray { background: #EEF0EE; color: var(--texte-clair); }

.mini-av {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #fff;
  font-weight: 700;
  margin-right: 8px;
  vertical-align: middle;
  background: var(--bleu-nuit);
}

.tiny-btn {
  border: 1px solid #E2E6E3;
  background: var(--blanc);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  margin-right: 6px;
  cursor: pointer;
  font-family: inherit;
}

.overflow-x {
  overflow-x: auto;
}

/* ============================================================
   FAVORIS, AVIS, MESSAGERIE
   ============================================================ */

.fav-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.92);
  border: none;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  z-index: 2;
}

.fav-btn.active {
  color: #EF4444;
}

.review-item {
  border-bottom: 1px solid #eee;
  padding: 14px 0;
}

.review-item:last-child {
  border-bottom: none;
}

.review-item .stars {
  color: var(--orange-fonce);
  font-size: 13px;
}

.review-item p {
  margin: 6px 0 0;
  font-size: 13.5px;
  color: var(--texte-clair);
}

.review-form textarea {
  margin-top: 8px;
}

.star-picker {
  display: flex;
  gap: 4px;
  font-size: 24px;
  cursor: pointer;
  margin-bottom: 10px;
}

.star-picker span {
  color: #ddd;
}

.star-picker span.selected {
  color: var(--orange-fonce);
}

.conv-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.conv-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid transparent;
}

.conv-item:hover,
.conv-item.active {
  background: #F9F9F9;
  border-color: #E2E6E3;
}

.conv-item .avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--bleu-nuit);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}

.msg-thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 420px;
  overflow-y: auto;
  padding: 6px;
}

.msg-bubble {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.5;
}

.msg-bubble.mine {
  align-self: flex-end;
  background: var(--vert-fonce);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.msg-bubble.theirs {
  align-self: flex-start;
  background: #F0F2F0;
  color: var(--texte);
  border-bottom-left-radius: 4px;
}

.msg-compose {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.msg-compose input {
  flex: 1;
  border: 1.5px solid #E2E6E3;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
}

.messages-wrap {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 18px;
}

@media (max-width: 780px) {
  .messages-wrap {
    grid-template-columns: 1fr;
  }
}
