/* ============================================================
   WOUGGO V2 — Composants UI — components.css
   Importer après variables.css
   ============================================================ */

/* ══════════════════════════════════════════════════════════
   BOUTONS
   ══════════════════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  font-size: var(--text-caption);
  font-weight: var(--font-semibold);
  font-family: var(--font-main);
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
}
.btn-primary:hover {
  background: var(--color-accent-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--color-accent);
  border: 1.5px solid var(--color-accent);
}
.btn-secondary:hover {
  background: var(--color-accent-light);
}

.btn-dark {
  background: var(--color-dark);
  color: var(--color-white);
}
.btn-dark:hover {
  background: var(--color-mid);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
}
.btn-ghost:hover {
  background: var(--color-light);
  color: var(--color-text-primary);
}

.btn-whatsapp {
  background: var(--color-whatsapp);
  color: var(--color-white);
}
.btn-whatsapp:hover {
  background: var(--color-whatsapp-dark);
  transform: translateY(-1px);
}

.btn-itineraire {
  background: var(--color-dark);
  color: var(--color-white);
}

.btn-sm {
  min-height: 36px;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-micro);
}

.btn-lg {
  min-height: 52px;
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-body);
}

.btn-full {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ══════════════════════════════════════════════════════════
   BADGES
   ══════════════════════════════════════════════════════════ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: var(--text-micro);
  font-weight: var(--font-semibold);
  white-space: nowrap;
}

.badge-ouvert {
  background: var(--color-success);
  color: var(--color-white);
}

.badge-ferme {
  background: var(--color-error);
  color: var(--color-white);
}

.badge-top-ia {
  background: var(--color-accent);
  color: var(--color-white);
}

.badge-verifie {
  background: var(--color-verifie);
  color: var(--color-white);
}

.badge-business {
  background: var(--color-business);
  color: var(--color-white);
}

.badge-flash {
  background: var(--color-accent);
  color: var(--color-white);
  animation: pulse-flash 1.5s infinite;
}

@keyframes pulse-flash {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.7; }
}

.badge-gratuit {
  background: var(--color-success);
  color: var(--color-white);
}

.badge-sponsorise {
  background: var(--color-mid);
  color: var(--color-white);
  font-size: var(--text-micro);
}

.badge-categorie {
  background: rgba(0,0,0,0.6);
  color: var(--color-white);
  backdrop-filter: blur(4px);
}

/* ══════════════════════════════════════════════════════════
   CARTES LIEUX — Design Wouggo V2
   ══════════════════════════════════════════════════════════ */

.card-lieu {
  background: var(--color-surf);
  border-radius: var(--wg-r-xl);
  box-shadow: 0 2px 16px rgba(83,40,34,.08);
  cursor: default;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: visible;
  transition: transform var(--wg-transition), box-shadow var(--wg-transition);
}
.card-lieu:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(83,40,34,.13);
}
.card-lieu__clickable {
  cursor: pointer;
  display: block;
  border-radius: var(--wg-r-xl) var(--wg-r-xl) 0 0;
  overflow: hidden;
}

/* ── Bouton favori — même style que le bouton partage ────── */
.card-lieu__favori {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  backdrop-filter: blur(6px);
  transition: transform var(--transition-fast), background var(--transition-fast);
  z-index: 10;
}
.card-lieu__favori:hover { transform: scale(1.1); background: rgba(255,255,255,0.28); }
.card-lieu__favori svg {
  width: 17px; height: 17px;
  stroke: #fff; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.card-lieu__favori.active svg { stroke: #fff; fill: rgba(255,255,255,0.8); }

/* ── Zone photo — carrée, 4 coins arrondis ──────────────── */
.card-lieu__photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--color-raised);
  flex-shrink: 0;
}

.card-lieu__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}
.card-lieu:hover .card-lieu__photo img { transform: scale(1.03); }

/* Placeholder sans photo */
.card-lieu__photo-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  background: var(--color-raised);
}

/* Badges haut gauche (catégorie + ouvert) — SUR la photo */
.card-lieu__photo-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}

/* Badge catégorie — fond gris semi-transparent foncé */
.badge-categorie {
  background: rgba(40, 38, 35, 0.72);
  color: #fff;
  font-size: var(--text-caption);
  font-weight: 600;
  padding: 5px 11px;
  border-radius: var(--wg-r-xl);
  backdrop-filter: blur(6px);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

/* Badge ouvert — vert plein */
.badge-ouvert {
  background: var(--color-verifie);
  color: #fff;
  font-size: var(--text-caption);
  font-weight: 600;
  padding: 5px 11px;
  border-radius: var(--wg-r-xl);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  width: fit-content;
}

/* Badge fermé */
.badge-ferme {
  background: #EF4444;
  color: #fff;
  font-size: var(--text-caption);
  font-weight: 600;
  padding: 5px 11px;
  border-radius: var(--wg-r-xl);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  width: fit-content;
}

/* Barre bas photo : note gauche, partage droite */
.card-lieu__photo-bottom {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

/* Note — texte blanc simple avec étoile jaune */
.card-lieu__note-txt {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: var(--text-caption);
  font-weight: 700;
  padding: 5px 10px;
  border-radius: var(--wg-r-xl);
}
.card-lieu__note-txt svg {
  width: 14px; height: 14px;
  fill: #F59E0B; stroke: none;
}

/* Bouton partage bas droite photo */
.card-lieu__share-btn {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  cursor: pointer;
  border: none;
  transition: transform var(--transition-fast), background var(--transition-fast);
}
.card-lieu__share-btn:hover { transform: scale(1.1); background: rgba(255,255,255,0.28); }
.card-lieu__share-btn svg {
  width: 17px; height: 17px;
  stroke: #fff; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* Zone cliquable de la carte (photo + infos) — défini plus haut */

/* ── Corps de la carte — fond transparent (crème du parent) ─ */
.card-lieu__body {
  padding: 8px 10px 6px;
  display: flex;
  flex-direction: column;
  height: 130px;
  overflow: hidden;
}

@media(max-width:768px) {
  .card-lieu__body {
    height: auto;
    min-height: 110px;
    padding: 6px 8px 6px;
  }
}

/* Nom + badge vérifié — badge collé après le nom */
.card-lieu__nom-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.card-lieu__nom {
  font-size: var(--text-caption);
  font-weight: 800;
  color: var(--color-txt);
  line-height: 1.2;
}

/* Badge vérifié ✓ cercle vert — taille réduite */
.card-lieu__badge-verifie {
  width: 18px;
  height: 18px;
  background: var(--color-verifie);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.card-lieu__badge-verifie svg {
  width: 10px; height: 10px;
  stroke: #fff; fill: none;
  stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
}

/* Badge business ⭐ */
.card-lieu__badge-business {
  font-size: var(--text-label);
  line-height: 1;
  flex-shrink: 0;
}

/* Ligne prix pill + quartier */
.card-lieu__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

/* Prix — pill orange clair */
.card-lieu__prix-pill {
  background: var(--color-accent-light);
  color: var(--color-accent-dark);
  font-size: var(--text-caption);
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--wg-r-xl);
  white-space: nowrap;
}

/* Quartier — texte gris simple */
.card-lieu__quartier {
  font-size: var(--text-caption);
  color: var(--color-sub);
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sur mobile : quartier passe à la ligne */
@media(max-width:768px) {
  .card-lieu__meta { gap: 5px; }
  .card-lieu__quartier {
    width: 100%;
    font-size: var(--text-micro);
  }
}

/* Description */
.card-lieu__description {
  font-size: var(--text-caption);
  color: var(--color-txt);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

@media(max-width:768px) {
  .card-lieu__description {
    font-size: var(--text-micro);
    -webkit-line-clamp: 2;
    margin-bottom: 8px;
  }
}

/* ── Barre actions — 3 éléments à hauteur identique ────────── */
.card-lieu__actions {
  display: flex;
  align-items: stretch;
  gap: 6px;
  height: 40px;
  flex-shrink: 0;
  padding: 0 10px 8px;
  position: relative;
  z-index: 2;
  background: var(--color-surf);
}

.card-lieu__photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--color-surf);
  flex-shrink: 0;
  padding: 8px;
}
.card-lieu__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--wg-r-lg);
  transition: transform var(--transition-slow);
}
.card-lieu:hover .card-lieu__photo img { transform: scale(1.03); }

/* Bouton Découvrir — compact */
.card-lieu__btn-decouvrir {
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: var(--wg-r-pill);
  padding: 0 12px;
  font-size: var(--text-micro);
  font-weight: 700;
  font-family: var(--font-main);
  cursor: pointer;
  transition: background var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
  height: 34px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.card-lieu__btn-decouvrir:hover { background: var(--color-accent-dark); }

/* Texte visible par défaut */
.card-lieu__btn-decouvrir .btn-label { display:inline; }
.card-lieu__btn-decouvrir .btn-icon-eye { display:none; }

/* Mobile — bouton circulaire avec icône œil */
@media(max-width:768px) {
  .card-lieu__btn-decouvrir {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    padding: 0;
    justify-content: center;
  }
  .card-lieu__btn-decouvrir .btn-label    { display:none; }
  .card-lieu__btn-decouvrir .btn-icon-eye { display:block; }
}

/* Pill nb avis + étoiles — largeur = contenu */
.card-lieu__avis-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(83,40,34,.10);
  border-radius: var(--wg-r-pill);
  padding: 0 8px;
  flex: 0 0 auto;
  width: fit-content;
  height: 34px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--wg-transition);
}
.card-lieu__avis-pill:hover { background: rgba(83,40,34,.18); }
.card-lieu__nb-avis {
  font-size: var(--text-micro);
  font-weight: 700;
  color: var(--color-txt);
  flex-shrink: 0;
}
.card-lieu__stars-wrap {
  display: flex;
  gap: 1px;
  align-items: center;
  flex-shrink: 0;
}
.card-lieu__star {
  width: 11px; height: 11px;
  flex-shrink: 0; cursor: pointer;
  transition: transform 0.1s;
}
.card-lieu__star:hover { transform: scale(1.2); }
.card-lieu__star path { fill: rgba(58,39,26,0.25); }
.card-lieu__star.filled path { fill: var(--color-accent-dark); }

/* Mobile — étoiles plus petites */
@media(max-width:768px) {
  .card-lieu__avis-pill { gap: 2px; padding: 0 5px; flex: 0 0 auto; width: fit-content; }
  .card-lieu__star      { width: 9px; height: 9px; }
  .card-lieu__nb-avis   { font-size: 9px; }
}

/* Bouton parcours — ajusté */
.card-lieu__btn-parcours {
  width: 34px;
  height: 34px;
  background: rgba(83,40,34,.10);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  margin-left: auto;
  transition: background var(--transition-fast), transform var(--transition-fast);
}
.card-lieu__btn-parcours:hover { background: rgba(83,40,34,.18); transform: scale(1.08); }
.card-lieu__btn-parcours svg { display: block; flex-shrink: 0; }

/* État actif */
.card-lieu__btn-parcours.active { background: var(--color-accent); }
.card-lieu__btn-parcours.active:hover { background: var(--color-accent-dark); }
.card-lieu__btn-parcours.active svg { stroke: #fff !important; }

/* Flash bannière */
.card-lieu__flash {
  background: #FFF0E8;
  border-left: 3px solid var(--color-accent);
  padding: 6px 10px;
  font-size: var(--text-caption);
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 10px;
  border-radius: 0 8px 8px 0;
}

/* Tags ambiance */
.card-lieu__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 10px;
}
.card-lieu__tag {
  padding: 3px 9px;
  background: var(--color-raised);
  border-radius: var(--wg-r-xl);
  font-size: var(--text-micro);
  color: var(--color-sub);
}

/* ══════════════════════════════════════════════════════════
   CARTES ÉVÉNEMENTS
   ══════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════
   CARTES ÉVÉNEMENTS — Style Poster
   ══════════════════════════════════════════════════════════ */

.card-event-poster {
  position: relative;
  cursor: pointer;
  border-radius: var(--wg-r-xl);
  overflow: hidden;
  transition: transform var(--wg-transition), box-shadow var(--wg-transition);
  background: var(--color-raised);
}
.card-event-poster:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,.18);
}

/* Image plein format — même ratio que les cartes lieu */
.card-event-poster__img {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;   /* Portrait — comme un poster */
  overflow: hidden;
  background: #1a1a2e;
}
.card-event-poster__img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .4s ease;
}
.card-event-poster:hover .card-event-poster__img img {
  transform: scale(1.04);
}

/* Placeholder sans image */
.card-event-poster__ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
}

/* Badges en haut */
.card-event-poster__top {
  position: absolute;
  top: 12px; left: 12px; right: 12px;
  display: flex; gap: .5rem; align-items: flex-start;
  z-index: 2;
}
.card-event-poster__badge {
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: var(--text-micro); font-weight: 600;
  padding: 3px 10px; border-radius: var(--wg-r-pill);
  white-space: nowrap;
}
.card-event-poster__gratuit {
  background: var(--color-success-txt);
  color: #fff;
  font-size: var(--text-micro); font-weight: 700;
  padding: 3px 10px; border-radius: var(--wg-r-pill);
  letter-spacing: .04em;
}

/* Overlay dégradé — couleur dynamique via JS */
.card-event-poster__overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.5rem 1rem 1rem;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.6) 40%, transparent 75%);
  z-index: 2;
}

/* Titre */
.card-event-poster__titre {
  font-size: var(--text-h3);
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: .75rem;
  text-shadow: 0 1px 4px rgba(0,0,0,.3);
}

/* Infos date + lieu */
.card-event-poster__info {
  display: flex;
  align-items: center;
  gap: .625rem;
}

/* Calendrier mini */
.card-event-poster__cal {
  background: #fff;
  border-radius: 8px;
  width: 40px;
  text-align: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.card-event-poster__mois {
  display: block;
  background: var(--color-accent);
  color: #fff;
  font-size: 8px; font-weight: 700;
  letter-spacing: .06em;
  padding: 2px 0;
}
.card-event-poster__jour {
  display: block;
  font-size: 16px; font-weight: 800;
  color: var(--color-txt);
  line-height: 1.4;
}

/* Lieu + heure */
.card-event-poster__details { flex: 1; min-width: 0; }
.card-event-poster__lieu {
  font-size: var(--text-caption); font-weight: 600;
  color: rgba(255,255,255,.9);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-event-poster__heure {
  font-size: var(--text-micro);
  color: rgba(255,255,255,.7);
}
.card-event-poster__time {
  font-size: var(--text-caption); font-weight: 700;
  color: #fff; white-space: nowrap; flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════
   CARTES BONS PLANS
   ══════════════════════════════════════════════════════════ */

.card-bon-plan {
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.card-bon-plan__image {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.card-bon-plan__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-bon-plan__reduction {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  background: var(--color-accent);
  color: var(--color-white);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--text-h2);
  font-weight: var(--font-bold);
}

.card-bon-plan__body {
  padding: var(--space-4);
}

.card-bon-plan__duree {
  font-size: var(--text-micro);
  color: var(--color-error);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-1);
}

/* ══════════════════════════════════════════════════════════
   CARTE SPONSORISÉE (Partenaire)
   ══════════════════════════════════════════════════════════ */

.card-sponsorise {
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  border: 1.5px solid var(--color-border);
  position: relative;
}

.card-sponsorise__label {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 1;
}

/* ══════════════════════════════════════════════════════════
   CHAT IA
   ══════════════════════════════════════════════════════════ */

.chat-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-white);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.chat-bubble {
  max-width: 85%;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-body);
  line-height: var(--leading-relaxed);
}

.chat-bubble--user {
  background: var(--color-accent);
  color: var(--color-white);
  align-self: flex-end;
  border-bottom-right-radius: var(--space-1);
}

.chat-bubble--ia {
  background: var(--color-light);
  color: var(--color-text-primary);
  align-self: flex-start;
  border-bottom-left-radius: var(--space-1);
}

.chat-bubble--ia strong {
  color: var(--color-accent);
}

.chat-typing {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: var(--space-3) var(--space-4);
  background: var(--color-light);
  border-radius: var(--radius-md);
  align-self: flex-start;
  width: fit-content;
}

.chat-typing span {
  width: 8px;
  height: 8px;
  background: var(--color-text-muted);
  border-radius: var(--radius-full);
  animation: typing-dot 1.2s infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-dot {
  0%, 60%, 100% { transform: translateY(0); }
  30%           { transform: translateY(-6px); }
}

.chat-input-bar {
  padding: var(--space-3) var(--space-4);
  padding-bottom: calc(var(--space-3) + env(safe-area-inset-bottom));
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  display: flex;
  gap: var(--space-2);
  align-items: flex-end;
}

.chat-input {
  flex: 1;
  min-height: 44px;
  max-height: 120px;
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  font-size: var(--text-body);
  font-family: var(--font-main);
  resize: none;
  outline: none;
  transition: border-color var(--transition-fast);
  background: var(--color-light);
}

.chat-input:focus {
  border-color: var(--color-accent);
  background: var(--color-white);
}

.chat-send-btn {
  width: 44px;
  height: 44px;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition-fast);
  font-size: var(--text-h2);
}
.chat-send-btn:hover { background: var(--color-accent-dark); }
.chat-send-btn:disabled { background: var(--color-border); }

.chat-suggestions {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  overflow-x: auto;
  scrollbar-width: none;
}
.chat-suggestions::-webkit-scrollbar { display: none; }

.chat-suggestion {
  flex-shrink: 0;
  padding: var(--space-2) var(--space-3);
  background: var(--color-accent-light);
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-full);
  font-size: var(--text-caption);
  font-weight: var(--font-medium);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}
.chat-suggestion:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

/* ══════════════════════════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════════════════════════ */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-height);
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: var(--z-sticky);
  padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 44px;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
  cursor: pointer;
  text-decoration: none;
}

.bottom-nav__item.active {
  color: var(--color-accent);
}

.bottom-nav__icon {
  font-size: var(--text-h1);
  line-height: 1;
}

.bottom-nav__label {
  font-size: var(--text-micro);
  font-weight: var(--font-medium);
}

.bottom-nav__badge {
  position: absolute;
  top: -2px;
  right: -4px;
  background: var(--color-error);
  color: var(--color-white);
  font-size: var(--text-micro);
  font-weight: var(--font-bold);
  min-width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

/* ══════════════════════════════════════════════════════════
   LOCATION PILL
   ══════════════════════════════════════════════════════════ */

.location-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-3);
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-caption);
  font-weight: var(--font-semibold);
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--color-text-primary);
}

.location-pill:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ══════════════════════════════════════════════════════════
   FILTRES RAPIDES
   ══════════════════════════════════════════════════════════ */

.filter-bar {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  scrollbar-width: none;
  padding: var(--space-3) var(--space-4);
}
.filter-bar::-webkit-scrollbar { display: none; }

.filter-pill {
  flex-shrink: 0;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-caption);
  font-weight: var(--font-medium);
  border: 1.5px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.filter-pill:hover,
.filter-pill.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
}

/* ══════════════════════════════════════════════════════════
   SKELETON LOADER
   ══════════════════════════════════════════════════════════ */

.skeleton {
  background: linear-gradient(90deg,
    var(--color-border) 25%,
    var(--color-light) 50%,
    var(--color-border) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.skeleton-img {
  width: 100%;
  aspect-ratio: 16/9;
}

.skeleton-line {
  height: 14px;
  margin: var(--space-2) var(--space-4);
}

.skeleton-line--short { width: 60%; }
.skeleton-line--medium { width: 80%; }
.skeleton-line--full { width: calc(100% - 2rem); }

/* ══════════════════════════════════════════════════════════
   TOAST
   ══════════════════════════════════════════════════════════ */

.toast-container {
  position: fixed;
  top: calc(var(--header-height) + var(--space-4));
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  pointer-events: none;
}

.toast {
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  font-size: var(--text-caption);
  font-weight: var(--font-medium);
  color: var(--color-white);
  box-shadow: var(--shadow-lg);
  animation: toast-in var(--transition-base) ease;
  white-space: nowrap;
}

.toast--success { background: var(--color-success); }
.toast--error   { background: var(--color-error); }
.toast--info    { background: var(--color-info); }
.toast--warning { background: var(--color-warning); }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════════
   MODAL
   ══════════════════════════════════════════════════════════ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  backdrop-filter: blur(4px);
}

.modal-content {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-5);
}

.modal-title {
  font-size: var(--text-h1);
  font-weight: var(--font-bold);
}

.modal-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--color-text-secondary);
  font-size: var(--text-h3);
  cursor: pointer;
  transition: background var(--transition-fast);
}
.modal-close:hover { background: var(--color-light); }

/* ══════════════════════════════════════════════════════════
   BOTTOM SHEET
   ══════════════════════════════════════════════════════════ */

.bottom-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: var(--z-modal);
  display: flex;
  align-items: flex-end;
}

.bottom-sheet {
  background: var(--color-white);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--space-2) var(--space-4) var(--space-6);
  padding-bottom: calc(var(--space-6) + env(safe-area-inset-bottom));
  animation: sheet-up var(--transition-base) ease;
}

.bottom-sheet__handle {
  width: 40px;
  height: 4px;
  background: var(--color-border);
  border-radius: var(--radius-full);
  margin: var(--space-3) auto var(--space-4);
}

@keyframes sheet-up {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════════
   AVATAR
   ══════════════════════════════════════════════════════════ */

.avatar {
  border-radius: var(--radius-full);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-weight: var(--font-bold);
}

.avatar--sm  { width: 32px; height: 32px; font-size: var(--text-caption); }
.avatar--md  { width: 44px; height: 44px; font-size: var(--text-body); }
.avatar--lg  { width: 64px; height: 64px; font-size: var(--text-h1); }
.avatar--xl  { width: 96px; height: 96px; font-size: var(--text-3xl); }

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ══════════════════════════════════════════════════════════
   INPUTS & FORMULAIRES
   ══════════════════════════════════════════════════════════ */

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.form-label {
  font-size: var(--text-caption);
  font-weight: var(--font-semibold);
  color: var(--color-text-primary);
}

.form-label .required {
  color: var(--color-error);
  margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  min-height: 44px;
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--text-body);
  font-family: var(--font-main);
  color: var(--color-text-primary);
  background: var(--color-white);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-focus);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: var(--color-error);
}

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

.form-hint {
  font-size: var(--text-micro);
  color: var(--color-text-muted);
}

.form-error {
  font-size: var(--text-micro);
  color: var(--color-error);
}

/* ══════════════════════════════════════════════════════════
   GRILLE DE RÉSULTATS
   ══════════════════════════════════════════════════════════ */

.results-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-4);
  padding: var(--space-4);
}

@media (max-width: 1024px) {
  .results-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .results-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .results-grid { grid-template-columns: 1fr; max-width: 340px; margin: 0 auto; }
}

/* ══════════════════════════════════════════════════════════
   SECTION TITRE
   ══════════════════════════════════════════════════════════ */

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) var(--space-4) var(--space-2);
}

.section-title {
  font-size: var(--text-h2);
  font-weight: var(--font-bold);
  color: var(--color-text-primary);
}

.section-link {
  font-size: var(--text-caption);
  color: var(--color-accent);
  font-weight: var(--font-medium);
}

/* ══════════════════════════════════════════════════════════
   EMPTY STATE
   ══════════════════════════════════════════════════════════ */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-16) var(--space-8);
  text-align: center;
  gap: var(--space-4);
}

.empty-state__icon {
  font-size: 3rem;
  opacity: 0.4;
}

.empty-state__title {
  font-size: var(--text-h2);
  font-weight: var(--font-bold);
  color: var(--color-text-primary);
}

.empty-state__text {
  font-size: var(--text-caption);
  color: var(--color-text-secondary);
  max-width: 280px;
}

/* ══════════════════════════════════════════════════════════
   FAB (Floating Action Button)
   ══════════════════════════════════════════════════════════ */

.fab {
  position: fixed;
  bottom: calc(var(--bottom-nav-height) + var(--space-4));
  right: var(--space-4);
  width: 56px;
  height: 56px;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-h1);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-sticky);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  cursor: pointer;
}

.fab:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

/* ══════════════════════════════════════════════════════════
   UTILITIES
   ══════════════════════════════════════════════════════════ */

.hidden { display: none !important; }
.flex   { display: flex; }
.grid   { display: grid; }

.items-center  { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }

.text-center { text-align: center; }
.text-accent { color: var(--color-accent); }
.text-muted  { color: var(--color-text-muted); }
.font-bold   { font-weight: var(--font-bold); }

.w-full  { width: 100%; }
.h-full  { height: 100%; }

.p-4  { padding: var(--space-4); }
.mt-4 { margin-top: var(--space-4); }
.mb-4 { margin-bottom: var(--space-4); }

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.no-scroll { overflow: hidden; }

/* ── Boutons connexion/inscription header ──────────────────── */
.header-auth-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-header-login {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border: 1.5px solid #E5E7EB;
  color: #532822;
  background: #fff;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  white-space: nowrap;
  line-height: 1;
}
.btn-header-login:hover { background: #f5ede9; border-color: #F97316; }
.btn-header-register {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  background: #F97316;
  color: #fff;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
  line-height: 1;
  border: 1.5px solid #F97316;
}
.btn-header-register:hover { background: #ea6c0e; }

/* ── Menu hamburger mobile ─────────────────────────────────── */
.mobile-menu-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: #f5ede9;
  border-radius: 50%;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mobile-menu-btn svg { stroke: #532822; }

/* ── Drawer menu mobile ────────────────────────────────────── */
.mobile-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 998;
}
.mobile-drawer-overlay.open { display: block; }
.mobile-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 280px;
  background: #fff;
  z-index: 999;
  transform: translateX(100%);
  transition: transform .25s ease;
  display: flex;
  flex-direction: column;
  padding: 0;
  box-shadow: -4px 0 24px rgba(0,0,0,.12);
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid #E5E7EB;
}
.mobile-drawer__close {
  width: 32px; height: 32px;
  border: none; background: #f5f5f5;
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: #532822;
}
.mobile-drawer__body { flex: 1; padding: 20px; }
.mobile-drawer__section { margin-bottom: 24px; }
.mobile-drawer__label {
  font-size: 11px; font-weight: 600;
  color: #9CA3AF; text-transform: uppercase;
  letter-spacing: .05em; margin-bottom: 8px;
}
.mobile-drawer__link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  text-decoration: none; color: #333;
  font-size: 14px; font-weight: 500;
  transition: background .15s;
  margin-bottom: 2px;
}
.mobile-drawer__link:hover { background: #f5ede9; }
.mobile-drawer__link svg { stroke: #532822; width: 18px; height: 18px; flex-shrink: 0; }
.mobile-drawer__footer {
  padding: 16px 20px;
  border-top: 1px solid #E5E7EB;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mobile-drawer__btn {
  display: block; width: 100%;
  padding: 11px 16px; border-radius: 10px;
  text-align: center; font-size: 14px;
  font-weight: 600; text-decoration: none;
  cursor: pointer; border: none;
  transition: background .15s;
}
.mobile-drawer__btn--login {
  background: #f5ede9; color: #532822;
}
.mobile-drawer__btn--register {
  background: #F97316; color: #fff;
}
.mobile-drawer__btn--login:hover   { background: #edddd6; }
.mobile-drawer__btn--register:hover { background: #ea6c0e; }

@media (min-width: 768px) {
  .mobile-menu-btn, .mobile-drawer, .mobile-drawer-overlay { display: none !important; }
}
@media (max-width: 767px) {
  .header-auth-btns { display: none !important; }
}

/* ── Mobile header actions (favoris + profil + hamburger) ─── */
.mobile-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.mobile-header-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f5ede9;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.mobile-header-icon svg {
  width: 17px;
  height: 17px;
  stroke: #532822;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mobile-header-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #F97316;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* ── Pro header / Mobile header ───────────────────────────── */
.pro-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .75rem 1rem;
  background: #fff;
  border-bottom: 1px solid #E5E7EB;
  position: sticky;
  top: 0;
  z-index: 50;
}
.pro-header__logo { display: flex; align-items: center; text-decoration: none; }
.pro-header__logo img { height: 24px; width: auto; display: block; }
.pro-header__close {
  width: 36px; height: 36px;
  border: none; background: #F5F5F5;
  border-radius: 50%; cursor: pointer;
  font-size: 1rem; color: #532822;
  display: flex; align-items: center; justify-content: center;
}
.pro-header__close:hover { background: #E5E7EB; }

/* ── Top header right — même style que mobile ─────────────── */
.top-header__right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.top-header__left {
  display: flex;
  align-items: center;
}
.top-header__logo { height: 26px; width: auto; }

/* ── Avatar header (desktop + mobile) ─────────────────────── */
.header-avatar-initiale {
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  border-radius: 50%;
  background: #F97316;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid #F97316;
}
.header-avatar-initiale img {
  width: 34px;
  height: 34px;
  min-width: 34px;
  object-fit: cover;
  display: block;
}


/* ══ ANTI-ZOOM iOS SUR LES CHAMPS ════════════════════════════
   Safari iOS zoome automatiquement la page des qu'on touche un champ dont la
   police fait moins de 16px — et ne dezoome jamais ensuite. On force donc 16px
   sur mobile pour TOUS les champs de saisie. La taille visuelle reste proche
   car 16px est la taille de lecture standard.
   ============================================================ */
@media (max-width: 767px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="url"],
  input[type="number"],
  input[type="password"],
  input[type="search"],
  input[type="date"],
  input[type="time"],
  input[type="datetime-local"],
  textarea,
  select {
    font-size: 16px !important;
  }
}
