/*
 * 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.
 */

/* Import des styles spécialisés */
@import "components/photos_offres.css";

/* === NOUVELLE PAGE D'ACCUEIL MODERNE === */

/* Variables CSS */
:root {
  --primary-color: #2563eb;
  --secondary-color: #1e40af;
  --accent-color: #3b82f6;
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --border-radius: 16px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Reset et base */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-white);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Header de marque coloré */
.brand-header-colorful {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  color: white;
  padding: 2rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.brand-header-colorful::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="70" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="70" cy="80" r="2.5" fill="rgba(255,255,255,0.1)"/></svg>');
  animation: sparkle 20s linear infinite;
}

@keyframes sparkle {
  0% { transform: translateX(0); }
  100% { transform: translateX(100px); }
}

.brand-name-colorful {
  font-size: 3rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  letter-spacing: -0.02em;
  position: relative;
  z-index: 2;
}

.brand-tagline-colorful {
  font-size: 1.2rem;
  margin: 0;
  font-weight: 400;
  opacity: 0.95;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
}

/* Hero Section Moderne */
.modern-hero {
  position: relative;
  min-height: 100vh;
  background: var(--gradient-primary);
  color: white;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.floating-elements {
  position: absolute;
  width: 100%;
  height: 100%;
}

.floating-element {
  position: absolute;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float var(--duration, 20s) infinite linear;
}

.floating-element:nth-child(1) {
  top: 20%;
  left: 10%;
  width: 80px;
  height: 80px;
}

.floating-element:nth-child(2) {
  top: 60%;
  right: 15%;
  width: 40px;
  height: 40px;
}

.floating-element:nth-child(3) {
  bottom: 30%;
  left: 20%;
  width: 100px;
  height: 100px;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-30px) rotate(120deg); }
  66% { transform: translateY(20px) rotate(240deg); }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem 0;
}

.badge-ai {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.gradient-text {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

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

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #fbbf24;
}

.stat-label {
  font-size: 0.875rem;
  opacity: 0.8;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.75rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Interface IA */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.ai-interface {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 400px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.interface-header {
  background: linear-gradient(135deg, #1f2937, #374151);
  color: white;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.interface-dots {
  display: flex;
  gap: 0.5rem;
}

.interface-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ef4444;
}

.interface-dots span:nth-child(2) {
  background: #f59e0b;
}

.interface-dots span:nth-child(3) {
  background: #10b981;
}

.interface-title {
  font-weight: 600;
  font-size: 0.875rem;
}

.interface-body {
  padding: 1.5rem;
  color: var(--text-primary);
}

.chat-message {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  align-items: flex-start;
}

.ai-message {
  flex-direction: row;
}

.user-message {
  flex-direction: row-reverse;
}

.message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.ai-message .message-avatar {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
}

.user-message .message-avatar {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.message-content {
  background: var(--bg-light);
  padding: 0.75rem 1rem;
  border-radius: 16px;
  font-size: 0.875rem;
  line-height: 1.4;
  max-width: 250px;
}

.user-message .message-content {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
}

.typing-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.typing-dots {
  display: flex;
  gap: 0.25rem;
}

.typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-color);
  animation: typing 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

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

/* Sections */
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Fonctionnalités IA */
.ai-features {
  background: var(--bg-light);
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  height: 100%;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: var(--gradient-primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: white;
  font-size: 1.5rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.feature-tech {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tech-badge {
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  color: var(--text-primary);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Timeline */
.automated-process {
  background: white;
}

.process-timeline {
  max-width: 800px;
  margin: 0 auto;
}

.timeline-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  align-items: flex-start;
}

.timeline-icon {
  width: 64px;
  height: 64px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  flex-shrink: 0;
  position: relative;
}

.timeline-icon::after {
  content: '';
  position: absolute;
  top: 64px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 60px;
  background: linear-gradient(to bottom, var(--accent-color), transparent);
}

.timeline-item:last-child .timeline-icon::after {
  display: none;
}

.timeline-content h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.timeline-content p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.timeline-tech {
  background: var(--gradient-secondary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  display: inline-block;
}

/* Pricing moderne */
.modern-pricing {
  background: var(--bg-light);
}

.pricing-card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  height: 100%;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.pricing-card.featured {
  border: 2px solid var(--accent-color);
  transform: scale(1.05);
}

.featured-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  transform: rotate(12deg);
  z-index: 10;
}

.featured-badge-large {
  position: absolute;
  top: -15px;
  right: -15px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 700;
  transform: rotate(12deg);
  z-index: 10;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.3);
  animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
  0%, 100% { transform: rotate(12deg) scale(1); }
  50% { transform: rotate(12deg) scale(1.05); }
}

.pricing-header {
  padding: 2rem 2rem 1rem;
  text-align: center;
}

.pricing-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.original-price {
  font-size: 1rem;
  color: var(--text-secondary);
  text-decoration: line-through;
  margin-bottom: 0.5rem;
}

.currency {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.amount {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-primary);
}

.period {
  font-size: 1rem;
  color: var(--text-secondary);
}

.beta-guarantee {
  font-size: 0.875rem;
  color: var(--accent-color);
  font-weight: 500;
}

.pricing-features {
  padding: 0 2rem 2rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

.feature-item i {
  width: 16px;
  color: var(--accent-color);
}

.feature-item.disabled {
  opacity: 0.5;
}

.feature-item.disabled i {
  color: var(--text-secondary);
}

.pricing-btn {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0 2rem 2rem;
  width: calc(100% - 4rem);
}

.pricing-btn:disabled {
  background: var(--bg-light);
  color: var(--text-secondary);
  cursor: not-allowed;
}

.featured-btn {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-lg);
}

.featured-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

/* Témoignages */
.testimonials {
  background: white;
}

.testimonial-card {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: var(--border-radius);
  height: 100%;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.testimonial-content {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: 2rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.author-name {
  font-weight: 600;
  color: var(--text-primary);
}

.author-title {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Footer moderne */
.modern-footer {
  background: linear-gradient(135deg, #1f2937, #111827);
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.footer-brand h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  opacity: 0.8;
}

.tech-stack {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.tech-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.8;
}

/* Animations */
.animate-in {
  animation: slideInUp 0.6s ease forwards;
}

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

/* Responsive */
@media (max-width: 768px) {
  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .timeline-item {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .timeline-icon::after {
    display: none;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  
  .tech-stack {
    justify-content: center;
  }
}

/* === STYLES EXISTANTS CONSERVÉS === */

.search-bar {
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 5px;
  margin-top: 20px;
}

#provider-search:focus {
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
  border-color: #86b7fe;
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.2s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.table-hover tbody tr:hover {
  background-color: #f0f8ff;
}

.nav-link-hover {
  transition: color 0.3s ease;
}

.nav-link-hover:hover {
  color: #ffd700 !important;
}

.nav-link-hover {
  transition: transform 0.3s ease, color 0.3s ease;
}

.nav-link-hover:hover {
  transform: scale(1.08);
  color: #ffd700 !important;
}

/* Styles pour les profils */
:root {
  --primary-color: #4361ee;
  --secondary-color: #3f37c9;
  --bg-color: #f8f9fa;
  --text-color: #333;
  --light-text: #6c757d;
  --border-radius: 12px;
  --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.container {
  max-width: 800px;
  margin: 3rem auto;
  padding: 0 1rem;
}

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

.profile-header-simple {
  padding: 2rem;
  border-bottom: 1px solid #eaeaea;
  background-color: white;
  text-align: center;
}

.profile-header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.profile-avatar-simple {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: #f0f4ff;
  border: 2px solid #e6e9f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary-color);
  margin: 0 auto;
}

.profile-title {
  text-align: center;
  width: 100%;
}

.profile-name-simple {
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-color);
}

.profile-location-simple {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.5rem;
  font-size: 1rem;
  color: var(--light-text);
}

.location-icon {
  margin-right: 0.5rem;
}

.profile-body {
  padding: 2rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.info-item {
  background-color: #f9fafc;
  padding: 1.25rem;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
}

.info-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.info-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--light-text);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.info-value {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-color);
}

.empty-value {
  color: var(--light-text);
  font-style: italic;
  font-weight: normal;
  opacity: 0.75;
}

.action-bar {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.edit-button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.edit-button:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.edit-icon {
  margin-right: 0.5rem;
}

@media (max-width: 768px) {
  .container {
    margin: 1rem auto;
  }
  
  .profile-header-simple {
    padding: 1.5rem;
  }
  
  .profile-name-simple {
    font-size: 1.5rem;
  }
  
  .profile-body {
    padding: 1.5rem;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
}

.progress {
  height: 20px;
  background-color: #e9ecef;
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar {
  transition: width 1.8s ease;
}

body .card.prestataire {
  border-left: 6px solid #3a7ca5;
  transition: transform 0.2s ease;
}

body .card.prestataire:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08) !important;
}

.badge.badge-type {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #3a7ca5;
  color: white;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 4px;
}

@media (max-width: 456.98px) {
  body .card.prestataire .card-body h5 {
    font-size: 1.05rem; 
    margin-bottom: 0.2rem; 
    word-wrap: break-word; 
    overflow-wrap: break-word; 
  }

  body .card.prestataire .card-body p.small,
  body .card.prestataire .card-body ul.list-unstyled li,
  body .card.prestataire .card-body .badge.badge-type {
    font-size: 0.7rem; 
    line-height: 1.3; 
  }

  body .card.prestataire .card-body ul.list-unstyled li {
    margin-bottom: 0.15rem; 
    word-break: break-all; 
  }

  body .card.prestataire .card-body p.text-muted.small.mb-3[style*="min-height"] {
    min-height: 40px !important; 
  }

  body .card.prestataire .card-body .btn-sm {
    padding: 0.2rem 0.4rem; 
    font-size: 0.7rem; 
  }

  .badge.badge-type { 
    padding: 3px 6px; 
    top: 5px; 
    right: 5px; 
    font-size: 0.65rem; 
  }
}

@media (min-width: 768px) and (max-width: 1399.98px) {
  body .card.prestataire .card-body ul.list-unstyled li {
    word-break: break-word;
  }
}

@media (min-width: 992px) and (max-width: 1399.98px) {
  body .card.prestataire .card-body h5 {
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  body .card.prestataire .card-body p.small,
  body .card.prestataire .card-body ul.list-unstyled li {
    font-size: 0.75rem;
    line-height: 1.3;
  }

  body .card.prestataire .card-body p.text-muted.small.mb-3[style*="min-height"] {
    min-height: 40px !important;
  }

  body .card.prestataire .card-body .btn-sm {
    font-size: 0.7rem;
    padding: 0.15rem 0.35rem;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  body .card.prestataire .card-body h5 {
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
  }

  body .card.prestataire .card-body p.small,
  body .card.prestataire .card-body ul.list-unstyled li {
    font-size: 0.78rem;
    line-height: 1.3;
  }

  body .card.prestataire .card-body p.text-muted.small.mb-3[style*="min-height"] {
    min-height: 45px !important;
  }
   body .card.prestataire .card-body .btn-sm {
    font-size: 0.72rem;
    padding: 0.18rem 0.4rem;
  }
}

body .card.prestataire ul.list-unstyled li {
  display: block;
}

body.annuaire-bg {
  background-color: #f4f6f8;
  background-image: linear-gradient(135deg, #f7f8fa 25%, transparent 25%),
                    linear-gradient(225deg, #f7f8fa 25%, transparent 25%),
                    linear-gradient(45deg, #f7f8fa 25%, transparent 25%),
                    linear-gradient(315deg, #f7f8fa 25%, #f4f6f8 25%);
  background-position: 10px 0, 10px 0, 0 0, 0 0;
  background-size: 20px 20px;
  background-repeat: repeat;
}

.template-card {
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.template-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#toast-container {
  z-index: 1090;
}

.select-template-btn {
  transition: all 0.2s;
}

.select-template-btn:hover {
  transform: scale(1.05);
}

#aiGenerationModal { z-index: 10001 !important; }
#aiGenerationModal .modal-backdrop { z-index: 10000 !important; }
/* Protection contre les conflits CSS du modal IA */
#aiGenerationModal .modal-content { background: white !important; border: none !important; }
body.modal-open { overflow: hidden !important; }

/* Styles pour l'assistant d'écriture IA - VERSION SIMPLIFIÉE SANS ANIMATIONS */
.ai-assistant-container {
  margin-top: 0.5rem;
  border-top: 1px solid #e9ecef;
  padding-top: 0.5rem;
}

/* DÉSACTIVER TOUTES LES ANIMATIONS SUR LES BOUTONS IA */
.ai-assistant-container .btn,
.ai-assistant-container .btn * {
  transition: none !important;
  transform: none !important;
  animation: none !important;
  box-shadow: none !important;
}

.ai-assistant-container .btn-outline-primary {
  border-color: #3a7ca5;
  color: #3a7ca5;
}

.ai-assistant-container .btn-outline-primary:hover {
  background-color: #3a7ca5;
  border-color: #3a7ca5;
  color: white;
}

.ai-assistant-container .btn-outline-info:hover {
  background-color: #0dcaf0;
  border-color: #0dcaf0;
}

.ai-assistant-container .btn-outline-success:hover {
  background-color: #198754;
  border-color: #198754;
}

.ai-assistant-container .btn-outline-warning:hover {
  background-color: #ffc107;
  border-color: #ffc107;
  color: #000;
}

/* Modal d'assistance IA */
#aiAssistModal .modal-content {
  border: none;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

#aiAssistModal .modal-header {
  background: linear-gradient(135deg, #3a7ca5 0%, #4a90e2 100%);
  color: white;
  border-radius: 0.5rem 0.5rem 0 0;
  border-bottom: none;
}

#aiAssistModal .modal-title {
  font-weight: 600;
}

#aiAssistModal .btn-close {
  filter: brightness(0) invert(1);
}

#aiAssistModal .alert-info {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-left: 4px solid #3a7ca5;
}

#aiAssistModal .form-control:focus {
  border-color: #3a7ca5;
  box-shadow: 0 0 0 0.2rem rgba(58, 124, 165, 0.25);
}

#aiAssistModal .btn-primary {
  background-color: #3a7ca5;
  border-color: #3a7ca5;
}

#aiAssistModal .btn-primary:hover {
  background-color: #2d5f7e;
  border-color: #2d5f7e;
}

/* Container pour les toasts IA */
#ai-toast-container {
  z-index: 1100;
}

/* Pas d'animations pour éviter les conflits */

/* DÉSACTIVATION GLOBALE DES ANIMATIONS PROBLÉMATIQUES SUR LES PAGES TEMPLATES */
body[class*="offer_templates"] * {
  animation: none !important;
  transition: none !important;
  transform: none !important;
}

body[class*="offer_templates"] *:hover {
  animation: none !important;
  transition: none !important;
  transform: none !important;
}

/* Désactiver spécifiquement les éléments flottants */
body[class*="offer_templates"] .floating-element {
  display: none !important;
}

/* Désactiver les effets parallax */
body[class*="offer_templates"] .parallax,
body[class*="offer_templates"] [style*="transform"] {
  transform: none !important;
}
