/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */
/* ============================================ COULEURS DU DRAPEAU GABONAIS ============================================ */
/* Variables Bootstrap custom */
/* ============================================ STYLES GÉNÉRAUX ============================================ */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}
 .bg-gabon-cream {
	 background-color: #f8f1d3 !important;
}
 .bg-gabon-blue {
	 background-color: #3a75c4 !important;
}
 .bg-gabon-green {
	 background-color: #009e60 !important;
}
 .text-gabon-cream {
	 color: #f8f1d3 !important;
}
 .text-gabon-blue {
	 color: #3a75c4 !important;
}
 .text-gabon-green {
	 color: #009e60 !important;
}
 .btn-gabon-blue {
	 background-color: #3a75c4;
	 border-color: #3a75c4;
}
 .btn-gabon-blue:hover {
	 background-color: #2e5e9d;
	 border-color: #2e5e9d;
}
 .btn-gabon-green {
	 background-color: #009e60;
	 border-color: #009e60;
}
 .btn-gabon-green:hover {
	 background-color: #006b41;
	 border-color: #006b41;
}
 .btn-outline-gabon-blue {
	 color: #3a75c4;
	 border-color: #3a75c4;
}
 .btn-outline-gabon-blue:hover {
	 background-color: #3a75c4;
	 color: white;
}
 .border-gabon-green {
	 border: 2px solid #009e60 !important;
}
.lebg{
	height: 100%;
	margin: 0;
	padding: 0;
}
.pub {
  position: fixed;
  top: 0;
  height: 100vh;
  width: calc(100vw / 6); /* ≈ col-xxl-2 */
  background-size: cover;
  background-position: center;
}
.pub-left {
	  left: 0;
  /*background-image: url("https://image.adsoftheworld.com/5zyiqlqrwmsgfx3e5u9pcwrxidb8");*/
}
.content {
  background-color: #F2F2F2;
  min-height: 100vh;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.pub-right {
	right: 0;
  /*background-image: url("https://image.adsoftheworld.com/5zyiqlqrwmsgfx3e5u9pcwrxidb8");*/
}
/* ============================================ SECTION HERO CAROUSEL ============================================ */
/* Section Hero */
  .hero-carousel-section {
    position: relative;
    width: 100%;
    height: 60vh;
    overflow: hidden;
  }
  
  @media (max-width: 768px) {
    .hero-carousel-section {
      height: 50vh;
      min-height: 500px;
    }
  }
  
  /* Carousel */
  #categoriesCarousel {
    height: 100%;
  }
  
  .carousel-inner {
    height: 100%;
  }
  
  .carousel-item {
    height: 100%;
    position: relative;
	background-color: #000;
  }
  
  /* Image de fond */
  .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: kenBurns 20s ease-in-out infinite alternate;
  }
  
  @keyframes kenBurns {
    0% {
      transform: scale(1);
    }
    100% {
      transform: scale(1.1);
    }
  }
  
  /* Overlay sombre pour contraste */
  .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      135deg,
      rgba(0, 0, 0, 0.7) 0%,
      rgba(58, 117, 196, 0.4) 50%,
      rgba(0, 158, 96, 0.3) 100%
    );
    z-index: 1;
  }
  
  /* Contenu */
  .hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    padding-top: 2rem;
    padding-left: clamp(1rem, 5vw, 5rem);
    padding-right: 1rem;
  }
  
  /* Icône de catégorie */
  .hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
  }
  
  .hero-icon i {
    font-size: 2.5rem;
    color: white;
  }
  
  /* Titre principal */
  .hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  }
  
  @media (max-width: 768px) {
    .hero-title {
      font-size: 2.5rem;
    }
  }
  
  @media (max-width: 576px) {
    .hero-title {
      font-size: 2rem;
    }
  }
  
  /* Sous-titre */
  .hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 600px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  }
  
  @media (max-width: 768px) {
    .hero-subtitle {
      font-size: 1.1rem;
    }
  }
  
  /* Bouton CTA style Yelp */
  .hero-cta {
    margin-bottom: 2rem;
  }
  
  .btn-hero-cta {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    background: #d32323; /* Rouge Yelp */
    border: none;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(211, 35, 35, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }
  
  .btn-hero-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
  }
  
  .btn-hero-cta:hover {
    background: #b71c1c;
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(211, 35, 35, 0.6);
    color: white;
  }
  
  .btn-hero-cta:hover::before {
    left: 100%;
  }
  
  /* Stats rapides */
  .hero-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
  }
  
  .stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  .stat-item i {
    font-size: 1.2rem;
    color: #009e60;
  }
  
  /* Indicateurs */
  .carousel-indicators {
    bottom: 30px;
    z-index: 3;
  }
  
  .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 5px;
    transition: all 0.3s ease;
  }
  
  .carousel-indicators button.active {
    width: 40px;
    border-radius: 6px;
    background-color: white;
  }
  
  /* Contrôles */
  .carousel-control-prev,
  .carousel-control-next {
    width: 60px;
    opacity: 1;
    z-index: 3;
  }
  
  .carousel-control-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
  }
  
  .carousel-control-icon i {
    font-size: 1.5rem;
    color: white;
  }
  
  .carousel-control-prev:hover .carousel-control-icon,
  .carousel-control-next:hover .carousel-control-icon {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    transform: scale(1.1);
  }
  
  @media (max-width: 768px) {
    .carousel-control-prev,
    .carousel-control-next {
      width: 40px;
    }
    
    .carousel-control-icon {
      width: 40px;
      height: 40px;
    }
    
    .carousel-control-icon i {
      font-size: 1.2rem;
    }
    
    .hero-stats {
      gap: 1rem;
    }
    
    .stat-item {
      font-size: 0.85rem;
      padding: 0.4rem 0.8rem;
    }
  }
  
  /* Animation d'entrée */
  .carousel-item.active .hero-title,
  .carousel-item.active .hero-subtitle,
  .carousel-item.active .hero-cta,
  .carousel-item.active .hero-icon,
  .carousel-item.active .hero-stats {
  animation: fadeInUp 0.5s ease-out forwards;
  }
  
  .carousel-item.active .hero-subtitle {
    animation-delay: 0.2s;
  }
  
  .carousel-item.active .hero-cta {
    animation-delay: 0.4s;
  }
  
  .carousel-item.active .hero-stats {
    animation-delay: 0.6s;
  }
  
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Effet de transition smooth entre slides */
  .carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
  }
  
  .carousel-fade .carousel-item.active {
    opacity: 1;
  }
/* ============================================ CATÉGORIES DRAGGABLES ============================================ */
 .categories-container {
	 overflow-x: auto;
	 scrollbar-width: thin;
	 scrollbar-color: #3a75c4 #f8f1d3;
}
 .categories-container::-webkit-scrollbar {
	 height: 8px;
}
 .categories-container::-webkit-scrollbar-track {
	 background: #f8f1d3;
	 border-radius: 10px;
}
 .categories-container::-webkit-scrollbar-thumb {
	 background: #3a75c4;
	 border-radius: 10px;
}
 .categories-container::-webkit-scrollbar-thumb:hover {
	 background: #2e5e9d;
}
 .categories-grid {
	 display: flex;
	 gap: 1rem;
	 padding: 1rem 0;
	 min-width: max-content;
}
 .category-item {
	 flex-shrink: 0;
	 cursor: move;
	 transition: all 0.3s ease;
}
 .category-item:hover {
	 transform: translateY(-5px);
}
 .category-item.is-dragging {
	 opacity: 0.5;
	 transform: scale(1.05);
}
 .category-link {
	 display: flex;
	 flex-direction: column;
	 align-items: center;
	 justify-content: center;
	 padding: 1.5rem 1rem;
	 background-color: white;
	 border: 2px solid #f8f1d3;
	 border-radius: 15px;
	 text-decoration: none;
	 color: #000;
	 transition: all 0.3s ease;
	 min-width: 120px;
	 box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
 .category-link:hover {
	 border-color: #3a75c4;
	 box-shadow: 0 5px 20px rgba(58, 117, 196, 0.2);
	 color: #3a75c4;
}
 .category-link:hover .category-icon {
	 transform: scale(1.1);
}
 .category-link.active {
	 background: linear-gradient(135deg, #3a75c4, #009e60);
	 border-color: #3a75c4;
	 color: white;
	 box-shadow: 0 8px 25px rgba(58, 117, 196, 0.3);
}
 .category-link.active .category-icon {
	 transform: scale(1.2);
}
 .category-icon {
	 font-size: 2.5rem;
	 margin-bottom: 0.5rem;
	 transition: transform 0.3s ease;
}
 .category-name {
	 font-size: 0.85rem;
	 font-weight: 600;
	 text-align: center;
}
/* ============================================ CARTES ARTISANS ============================================ */
 .artisan-card {
	 transition: all 0.3s ease;
	 border: none;
	 border-radius: 15px;
	 overflow: hidden;
}
 .artisan-card:hover {
	 transform: translateY(-10px);
	 box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
}
 .artisan-card:hover .card-img-top {
	 transform: scale(1.05);
}
 .artisan-card .card-img-top {
	 transition: transform 0.3s ease;
	 height: 200px;
	 object-fit: cover;
}
 .artisan-card-horizontal {
	 transition: all 0.3s ease;
	 border: none;
	 border-radius: 10px;
	 overflow: hidden;
}
 .artisan-card-horizontal:hover {
	 transform: translateX(5px);
	 box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
}
/* ============================================ VILLES ============================================ */
 .ville-card {
	 transition: all 0.3s ease;
	 border: none;
	 border-radius: 15px;
	 overflow: hidden;
}
 .ville-card:hover {
	 transform: translateY(-5px);
	 box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}
 .hover-lift:hover {
	 transform: translateY(-5px);
}
/* ============================================ RATING STARS ============================================ */
 .rating i {
	 font-size: 0.9rem;
}
/* ============================================ ANIMATIONS ============================================ */
 @keyframes pulse {
	 0%, 100% {
		 transform: scale(1);
	}
	 50% {
		 transform: scale(1.05);
	}
}
 .pulse-animation {
	 animation: pulse 2s infinite;
}
/* ============================================ RESPONSIVE ============================================ */
 @media (max-width: 768px) {
	 .category-link {
		 min-width: 100px;
		 padding: 1rem 0.75rem;
	}
	 .category-icon {
		 font-size: 2rem;
	}
	 .category-name {
		 font-size: 0.75rem;
	}
}

/*----- Placide -----*/
/* app/assets/stylesheets/placide.css */
/* Version améliorée avec charte graphique : #00399f, #00b034, #fffa00 */

#placide-widget {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ============================================
   BULLE FLOTTANTE
   ============================================ */
.placide-bubble {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #00399f 0%, #00b034 100%);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 57, 159, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 9998;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(0, 57, 159, 0.4);
  }
  50% {
    box-shadow: 0 4px 20px rgba(0, 176, 52, 0.6);
  }
}

.placide-bubble:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 57, 159, 0.5);
}

.placide-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

/* Avatar placeholder (emoji) */
.avatar-placeholder {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00399f 0%, #00b034 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.placide-notification {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ff4757;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* ============================================
   FENÊTRE DE CHAT
   ============================================ */
.placide-chat-window {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 400px;
  height: 650px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  z-index: 9999;
  animation: slideUp 0.3s ease;
  overflow: hidden;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   EN-TÊTE
   ============================================ */
.placide-header {
  background: linear-gradient(135deg, #00399f 0%, #00b034 100%);
  color: white;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.placide-header-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.placide-header-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid white;
}

.placide-header-info h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.placide-status {
  font-size: 12px;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 5px;
}

.placide-status::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #fffa00;
  border-radius: 50%;
  animation: blink 2s infinite;
}

@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.placide-close-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.placide-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ============================================
   MESSAGES
   ============================================ */
.placide-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: #f8f9fa;
}

/* Scrollbar personnalisée */
.placide-messages::-webkit-scrollbar {
  width: 6px;
}

.placide-messages::-webkit-scrollbar-track {
  background: transparent;
}

.placide-messages::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 10px;
}

.placide-messages::-webkit-scrollbar-thumb:hover {
  background: #00399f;
}

.placide-message {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  animation: fadeIn 0.3s ease;
  align-items: flex-start;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message-avatar {
  flex-shrink: 0;
}

.message-avatar img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.message-content {
  background: white;
  padding: 12px 16px;
  border-radius: 12px 12px 12px 4px;
  max-width: 85%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.message-content p {
  margin: 0 0 8px 0;
  line-height: 1.5;
  font-size: 14px;
  color: #2c3e50;
}

.message-content p:last-child {
  margin-bottom: 0;
}

.message-content strong {
  color: #00399f;
  font-weight: 600;
}

.user-message {
  flex-direction: row-reverse;
}

.user-message .message-content {
  background: linear-gradient(135deg, #00399f 0%, #00b034 100%);
  color: white;
  border-radius: 12px 12px 4px 12px;
  max-width: 70%;
}

.user-message .message-content p {
  color: white;
}

.user-message .message-content strong {
  color: #fffa00;
}

/* Indicateur de frappe */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 12px;
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  background: #00399f;
  border-radius: 50%;
  animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
  background: #00b034;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
  background: #00399f;
}

@keyframes typing {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.7;
  }
  30% {
    transform: translateY(-10px);
    opacity: 1;
  }
}

/* ============================================
   CARTES ARTISANS
   ============================================ */
.artisan-cards-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 15px 0;
  max-width: 100%;
}

.artisan-card {
  background: white;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid #e9ecef;
}

.artisan-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 57, 159, 0.15);
  border-color: #00399f;
}

.artisan-card-header {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  align-items: flex-start;
}

.artisan-logo {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f3f4f6;
  border: 2px solid #e9ecef;
}

.artisan-logo-placeholder {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  background: linear-gradient(135deg, #00399f 0%, #00b034 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.artisan-card-info {
  flex: 1;
  min-width: 0;
}

.artisan-card-info h4 {
  margin: 0 0 4px 0;
  font-size: 15px;
  font-weight: 600;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.artisan-location {
  margin: 0;
  font-size: 13px;
  color: #7f8c8d;
}

.artisan-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 12px 0;
  padding-left: 0;
}

.artisan-card-body p {
  margin: 6px 0;
  font-size: 13px;
}

.artisan-categories {
  color: #00399f;
  font-weight: 500;
}

.artisan-contact {
  color: #00b034;
  font-weight: 500;
}

.artisan-views {
  color: #7f8c8d;
}

.artisan-rating {
  color: #fffa00;
  font-weight: 600;
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
}

.artisan-card-footer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e9ecef;
  display: flex;
  justify-content: flex-end;
}

.view-profile {
  color: #00399f;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}

.artisan-card:hover .view-profile {
  color: #00b034;
  gap: 8px;
}

/* ============================================
   BOUTON "VOIR PLUS"
   ============================================ */
.load-more-container {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.load-more-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: linear-gradient(135deg, #00399f 0%, #00b034 100%);
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 57, 159, 0.3);
}

.load-more-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 176, 52, 0.4);
}

.load-more-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Spinner pour le bouton de chargement */
.spinner {
  border: 2px solid #f3f3f3;
  border-top: 2px solid #fffa00;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  animation: spin 0.8s linear infinite;
  display: inline-block;
  margin-right: 8px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ============================================
   SUGGESTIONS RAPIDES
   ============================================ */
.placide-suggestions {
  padding: 12px 16px;
  background: white;
  border-top: 1px solid #e9ecef;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  flex-wrap: wrap;
}

/* Scrollbar horizontale personnalisée */
.placide-suggestions::-webkit-scrollbar {
  height: 4px;
}

.placide-suggestions::-webkit-scrollbar-track {
  background: transparent;
}

.placide-suggestions::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 10px;
}

.placide-suggestions::-webkit-scrollbar-thumb:hover {
  background: #00399f;
}

.suggestion-btn {
  background: #f0f2f5;
  border: 2px solid transparent;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  color: #495057;
  font-weight: 500;
}

.suggestion-btn:hover {
  background: linear-gradient(135deg, #00399f 0%, #00b034 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 57, 159, 0.2);
}

/* ============================================
   ZONE DE SAISIE
   ============================================ */
.placide-input-area {
  padding: 16px;
  background: white;
  border-top: 1px solid #e9ecef;
  display: flex;
  gap: 8px;
}

#placide-input {
  flex: 1;
  border: 2px solid #e9ecef;
  border-radius: 24px;
  padding: 10px 16px;
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
}

#placide-input:focus {
  border-color: #00399f;
  box-shadow: 0 0 0 3px rgba(0, 57, 159, 0.1);
}

#placide-input::placeholder {
  color: #adb5bd;
}

.placide-send-btn {
  background: linear-gradient(135deg, #00399f 0%, #00b034 100%);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.placide-send-btn:hover:not(:disabled) {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 176, 52, 0.3);
}

.placide-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================
   BADGES ET ACCENTS
   ============================================ */
.badge-featured {
  display: inline-block;
  background: #fffa00;
  color: #2c3e50;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  margin-left: 6px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .placide-chat-window {
    width: calc(100vw - 20px);
    height: calc(100vh - 100px);
    bottom: 10px;
    right: 10px;
  }
  
  .placide-bubble {
    bottom: 10px;
    right: 10px;
  }
  
  .artisan-card {
    padding: 12px;
  }
  
  .artisan-logo,
  .artisan-logo-placeholder {
    width: 40px;
    height: 40px;
  }
  
  .message-content {
    max-width: 90%;
  }
}

@media (max-width: 480px) {
  .placide-chat-window {
    width: 100vw;
    height: 100vh;
    bottom: 0;
    right: 0;
    border-radius: 0;
  }
  
  .message-content {
    max-width: 85%;
  }
  
  .artisan-cards-container {
    gap: 10px;
  }
}

/* ============================================
   AMÉLIORATIONS VISUELLES
   ============================================ */

/* Badge "Nouveau" pour nouveaux artisans */
.badge-new {
  background: #00b034;
  color: white;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

/* Icône vérifiée */
.verified-icon {
  color: #00b034;
  font-size: 14px;
}

/* Animation au scroll */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.artisan-card {
  animation: slideInUp 0.4s ease-out;
}

.artisan-card:nth-child(2) {
  animation-delay: 0.1s;
}

.artisan-card:nth-child(3) {
  animation-delay: 0.2s;
}

.artisan-card:nth-child(4) {
  animation-delay: 0.3s;
}

.artisan-card:nth-child(5) {
  animation-delay: 0.4s;
}

/* ══════════════════════════════════════════════════════════
   DARK MODE — pages Bootstrap (artisans, annuaire, admin…)
   Activé via html[data-theme="dark"] (localStorage "theme")
   ══════════════════════════════════════════════════════════ */
html[data-theme="dark"] body {
  background-color: #1a1a1a !important;
  color: #e0e0e0 !important;
}
html[data-theme="dark"] .content { background-color: #1a1a1a !important; }
html[data-theme="dark"] .card {
  background-color: #252525 !important;
  border-color: #3a3a3a !important;
  color: #e0e0e0 !important;
}
html[data-theme="dark"] .card-header {
  background-color: #1e1e1e !important;
  border-color: #3a3a3a !important;
  color: #e0e0e0 !important;
}
html[data-theme="dark"] .table {
  --bs-table-color: #e0e0e0;
  --bs-table-bg: transparent;
  --bs-table-border-color: #3a3a3a;
  --bs-table-hover-bg: rgba(255,255,255,.05);
  --bs-table-striped-bg: rgba(255,255,255,.03);
  color: #e0e0e0;
}
html[data-theme="dark"] .table-light {
  --bs-table-color: #e0e0e0;
  --bs-table-bg: #1e1e1e;
  --bs-table-border-color: #3a3a3a;
}
html[data-theme="dark"] .text-muted { color: #888 !important; }
html[data-theme="dark"] .bg-light   { background-color: #252525 !important; }
html[data-theme="dark"] .bg-white   { background-color: #252525 !important; }
html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select {
  background-color: #2a2a2a !important;
  border-color: #444 !important;
  color: #e0e0e0 !important;
}
html[data-theme="dark"] .form-control::placeholder { color: #666 !important; }
html[data-theme="dark"] .input-group-text {
  background-color: #2a2a2a !important;
  border-color: #444 !important;
  color: #aaa !important;
}
html[data-theme="dark"] .modal-content {
  background-color: #252525 !important;
  color: #e0e0e0 !important;
  border-color: #444 !important;
}
html[data-theme="dark"] .modal-header,
html[data-theme="dark"] .modal-footer { border-color: #3a3a3a !important; }
html[data-theme="dark"] .list-group-item {
  background-color: #252525 !important;
  border-color: #3a3a3a !important;
  color: #e0e0e0 !important;
}
html[data-theme="dark"] .list-group-item:hover { background-color: #2e2e2e !important; }
html[data-theme="dark"] .offcanvas,
html[data-theme="dark"] .offcanvas-start {
  background-color: #1e1e1e !important;
  color: #e0e0e0 !important;
}
html[data-theme="dark"] .dropdown-menu {
  background-color: #252525 !important;
  border-color: #444 !important;
}
html[data-theme="dark"] .dropdown-item { color: #e0e0e0 !important; }
html[data-theme="dark"] .dropdown-item:hover { background-color: #333 !important; }
html[data-theme="dark"] .nav-tabs .nav-link { color: #aaa; }
html[data-theme="dark"] .nav-tabs .nav-link.active {
  background-color: #252525;
  border-color: #444 #444 transparent;
  color: #e0e0e0;
}
html[data-theme="dark"] .alert-info {
  background-color: #1a2a35 !important;
  border-color: #1a4a5a !important;
  color: #7ec8e3 !important;
}
html[data-theme="dark"] .progress       { background-color: #333 !important; }
html[data-theme="dark"] .badge.bg-secondary { background-color: #555 !important; }
html[data-theme="dark"] .border-top,
html[data-theme="dark"] .border-bottom  { border-color: #3a3a3a !important; }
/* ----- Fin Placide ----- */

/* ============================================
   GLOBAL RESPONSIVE FIXES
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body {
  overflow-x: hidden;
  max-width: 100%;
}
img, video, iframe { max-width: 100%; height: auto; }
/* Touch-friendly min-height for buttons on mobile */
@media (max-width: 767px) {
  .btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
  }
  .btn-sm { min-height: 36px; font-size: 0.82rem; }
  /* Hero carousel content */
  .hero-content { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }
  /* Card footer button */
  .artisan-card .card-footer .btn { width: 100%; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 1.6rem !important; }
  .hero-subtitle { font-size: 0.95rem !important; }
  .hero-stats { display: none; }
}
/* Prevent horizontal overflow in all containers */
.container, .container-fluid, .container-xl, .container-lg, .container-md {
  max-width: 100%;
}

/* ============================================
   PAGES AUTH DEVISE — style BD
   ============================================ */
.auth-page-wrap {
  min-height: 100dvh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px calc(24px + env(safe-area-inset-bottom));
  position: relative;
  background: url("/gabonaire-default-cover.webp") center/cover no-repeat;
}
.auth-page-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 20, 80, 0.86);
  z-index: 0;
}
.auth-card {
  position: relative;
  z-index: 1;
  background: #fff;
  border: 4px solid #000;
  border-radius: 20px;
  box-shadow: 8px 8px 0 #000;
  padding: 36px 40px 30px;
  width: 100%;
  max-width: 440px;
}
@media (max-width: 480px) {
  .auth-card {
    padding: 20px 16px 18px;
    border-radius: 14px;
    border-width: 3px;
    box-shadow: 4px 4px 0 #000;
  }
  .auth-logo-wrap { margin-bottom: 14px; }
  .auth-logo-wrap img { height: 38px; }
  .auth-field { margin-bottom: 12px; }
  .auth-input { padding: 11px 13px; font-size: 1rem; }
  .auth-submit-btn { padding: 12px 16px; font-size: 0.9rem; min-height: 48px; }
  .auth-links { margin-top: 14px; padding-top: 12px; gap: 6px; }
  .auth-links a { font-size: 0.82rem; }
  .auth-danger-zone { margin-top: 16px; padding: 12px; }
}
.auth-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 22px;
}
.auth-logo-wrap img {
  height: 48px;
  width: auto;
}
.auth-logo-text {
  font-family: 'Carter One', cursive, sans-serif;
  font-size: 1rem;
  font-weight: 900;
  color: #0066CC;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.auth-title {
  font-family: 'Carter One', cursive, sans-serif;
  font-size: clamp(1.05rem, 4vw, 1.4rem);
  font-weight: 800;
  color: #000;
  text-align: center;
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.auth-subtitle {
  font-family: 'Kalam', cursive, sans-serif;
  font-size: clamp(0.78rem, 3vw, 0.85rem);
  font-weight: 600;
  color: #666;
  text-align: center;
  margin: 0 0 18px;
}
/* Flash notices inside card */
.auth-notice {
  padding: 10px 14px;
  border: 3px solid #000;
  border-radius: 10px;
  margin-bottom: 16px;
  font-family: 'Kalam', cursive, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 3px 3px 0 #000;
}
.auth-notice-success { background: #ECFDF5; color: #065f46; border-color: #059669; }
.auth-notice-alert   { background: #FFF3E8; color: #9a3412; border-color: #E8640A; }
/* Error messages */
#error_explanation {
  background: #fff3e8;
  border: 3px solid #E8640A;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 18px;
  box-shadow: 3px 3px 0 #000;
}
#error_explanation h2 {
  font-family: 'Carter One', cursive, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  color: #E8640A;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 8px;
}
#error_explanation ul {
  margin: 0;
  padding-left: 16px;
  font-family: 'Kalam', cursive, sans-serif;
  font-size: 0.85rem;
  color: #c0392b;
}
/* Field groups */
.auth-field {
  margin-bottom: 16px;
}
.auth-label {
  display: block;
  font-family: 'Carter One', cursive, sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #000;
  margin-bottom: 6px;
}
.auth-input {
  width: 100%;
  padding: 13px 16px;
  border: 3px solid #000;
  border-radius: 10px;
  font-family: 'Kalam', cursive, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #000;
  background: #FAFAF8;
  box-shadow: 3px 3px 0 #000;
  outline: none;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  min-height: 50px;
}
.auth-input:focus {
  transform: translateY(-2px);
  box-shadow: 4px 5px 0 #000, 0 0 0 3px rgba(0, 102, 204, 0.18);
  border-color: #0066CC;
}
.auth-hint {
  font-family: 'Kalam', cursive, sans-serif;
  font-size: 0.75rem;
  color: #888;
  margin-top: 4px;
  display: block;
}
.auth-check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.auth-check-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  border: 3px solid #000;
  border-radius: 4px;
  cursor: pointer;
  accent-color: #0066CC;
  flex-shrink: 0;
}
.auth-check-label {
  font-family: 'Kalam', cursive, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #333;
  cursor: pointer;
}
/* Submit button */
.auth-submit-btn {
  width: 100%;
  padding: 14px 24px;
  background: #E8640A;
  color: #fff;
  border: 4px solid #000;
  border-radius: 12px;
  font-family: 'Carter One', cursive, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 5px 5px 0 #000;
  transition: transform 0.15s, box-shadow 0.15s;
  margin-top: 6px;
  min-height: 52px;
}
.auth-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 7px 7px 0 #000;
}
.auth-submit-btn:active {
  transform: translateY(1px);
  box-shadow: 2px 2px 0 #000;
}
/* Auth links section */
.auth-links {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 2px solid #eee;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.auth-links a {
  font-family: 'Kalam', cursive, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0066CC;
  text-decoration: none;
  transition: color 0.15s;
  text-align: center;
}
.auth-links a:hover { color: #E8640A; text-decoration: underline; }
/* Danger zone (annuler compte) */
.auth-danger-zone {
  margin-top: 24px;
  padding: 16px;
  border: 3px solid #ff3333;
  border-radius: 12px;
  background: #fff5f5;
  box-shadow: 3px 3px 0 #ff3333;
}
.auth-danger-title {
  font-family: 'Carter One', cursive, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #ff3333;
  margin: 0 0 10px;
}
.auth-danger-btn {
  background: #ff3333;
  color: #fff;
  border: 3px solid #000;
  border-radius: 10px;
  padding: 10px 20px;
  font-family: 'Carter One', cursive, sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 3px 3px 0 #000;
  transition: transform 0.15s;
  min-height: 44px;
}
.auth-danger-btn:hover { transform: translateY(-1px); }
/* Dark mode auth */
html[data-theme="dark"] .auth-card {
  background: #1e1e1e;
  border-color: #555;
  box-shadow: 8px 8px 0 #555;
  color: #e0e0e0;
}
html[data-theme="dark"] .auth-title { color: #e0e0e0; }
html[data-theme="dark"] .auth-label { color: #e0e0e0; }
html[data-theme="dark"] .auth-input {
  background: #2a2a2a;
  border-color: #555;
  color: #e0e0e0;
  box-shadow: 3px 3px 0 #555;
}
html[data-theme="dark"] .auth-input:focus { border-color: #4a9eff; }
html[data-theme="dark"] .auth-links { border-top-color: #3a3a3a; }
html[data-theme="dark"] .auth-links a { color: #4a9eff; }
