/*
 * MON ESPRIT - CUSTOM STYLES
 * Design system inspiré de Femine avec Bootstrap
 * Élégant, moderne et professionnel
 */

/* ============================================
   VARIABLES CSS
   ============================================ */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.5rem 0;
}

.table-wrapper table {
    min-width: 600px; /* Largeur minimale pour garder la lisibilité */
}

:root {
  /* COULEURS PRIMAIRES */
  --color-primary: #e93e67;
  --color-primary-light: #f37895;
  --color-primary-lighter: #ffc5d1;
  --color-primary-dark: #c53054;
  
  /* COULEURS SECONDAIRES */
  --color-secondary: #cdb9a5;
  --color-secondary-light: #ebe0d5;
  --color-secondary-lighter: #faf7f4;
  --color-secondary-dark: #9b8976;
  
  /* COULEURS NEUTRES */
  --color-dark: #262626;
  --color-text: #404040;
  --color-text-light: #737373;
  --color-bg-light: #fafafa;
  
  /* TYPOGRAPHIE */
  --font-heading: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  
  /* ESPACEMENTS */
  --space-section: 5rem;
  
  /* TRANSITIONS */
  --transition: 0.3s ease-in-out;
  
  /* SHADOWS */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  
  /* BORDER RADIUS */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
}

/* ============================================
   RESET & BASE
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 76px; /* Hauteur du navbar fixed */
}

/* Typographie */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-dark);
}

.text-primary {
  color: var(--color-primary) !important;
}

.bg-light {
  background-color: var(--color-secondary-lighter) !important;
}

/* ============================================
   NAVIGATION
   ============================================ */

.site-header {
  position: relative;
}

.navbar {
  padding: 1rem 0;
  transition: all var(--transition);
  backdrop-filter: blur(10px);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-primary) !important;
  transition: all var(--transition);
}

.navbar-brand:hover {
  color: var(--color-primary-dark) !important;
  transform: translateY(-2px);
}

.nav-link {
  font-weight: 500;
  color: var(--color-text) !important;
  padding: 0.5rem 1rem !important;
  transition: all var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width var(--transition);
}

.nav-link:hover {
  color: var(--color-primary) !important;
}

.nav-link:hover::after {
  width: calc(100% - 2rem);
}

.navbar-toggler {
  border: none;
  padding: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* ============================================
   BOUTONS
   ============================================ */

.btn {
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  transition: all var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-primary {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background-color: transparent;
}

.btn-outline-primary:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff 0%, var(--color-secondary-lighter) 100%);
  padding-top: 2rem;
}

.hero-content {
  animation: fadeInUp 0.8s ease-out;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.hero-content .lead {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.hero-cta {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-image {
  position: relative;
  animation: fadeIn 1s ease-out 0.3s both;
}

.hero-blob {
  position: absolute;
  top: -10%;
  right: -5%;
  width: 70%;
  height: 90%;
  background: linear-gradient(135deg, var(--color-primary-lighter) 0%, var(--color-primary-light) 100%);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  opacity: 0.3;
  z-index: 0;
  animation: blobAnimation 8s ease-in-out infinite;
}

.hero-image img {
  position: relative;
  z-index: 1;
}

.hero-decoration {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.decoration-shape {
  position: absolute;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0.05;
}

.decoration-shape-1 {
  width: 300px;
  height: 300px;
  top: -100px;
  left: -100px;
}

.decoration-shape-2 {
  width: 200px;
  height: 200px;
  bottom: -50px;
  right: -50px;
}

@keyframes blobAnimation {
  0%, 100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
  50% {
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
  }
}

/* ============================================
   STATS SECTION
   ============================================ */

.stats-section {
  background: linear-gradient(180deg, var(--color-secondary-lighter) 0%, #ffffff 100%);
}

.stat-card {
  padding: 2rem 1rem;
  transition: all var(--transition);
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-card:hover .stat-icon i {
  transform: scale(1.1);
  color: var(--color-primary-dark);
}

.stat-icon i {
  transition: all var(--transition);
}

.stat-number {
  font-family: var(--font-heading);
  color: var(--color-primary);
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-section {
  padding: var(--space-section) 0;
}

.about-image-wrapper {
  position: relative;
}

.about-blob {
  position: absolute;
  top: -5%;
  left: -5%;
  width: 65%;
  height: 80%;
  background: linear-gradient(135deg, var(--color-secondary-light) 0%, var(--color-secondary) 100%);
  border-radius: 40% 60% 50% 50%;
  opacity: 0.3;
  z-index: 0;
  animation: blobAnimation 10s ease-in-out infinite;
}

.about-badge {
  position: absolute;
  bottom: 30px;
  right: 30px;
  background-color: var(--color-primary);
  color: white;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 2;
  text-align: center;
  min-width: 120px;
}

.about-badge strong {
  font-family: var(--font-heading);
}

.feature-item {
  padding: 1rem;
  transition: all var(--transition);
}

.feature-item:hover .feature-icon i {
  transform: scale(1.2);
}

.feature-icon i {
  transition: all var(--transition);
}

/* ============================================
   BLOG SECTION
   ============================================ */

.blog-section {
  padding: var(--space-section) 0;
}

.blog-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  border: none;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg) !important;
}

.blog-card-featured {
  height: 100%;
}

.card-image-wrapper {
  position: relative;
  overflow: hidden;
  margin: 0;
}

.blog-card-featured .card-image-wrapper {
  height: 300px;
}

.card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.blog-card:hover .card-image-wrapper img {
  transform: scale(1.05);
}

.badge-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: var(--color-primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 1;
}

.badge-category-sm {
  background-color: var(--color-primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 500;
  display: inline-block;
}

.card-meta {
  font-size: 0.875rem;
}

.card-meta i {
  color: var(--color-primary);
}

.card-title a {
  transition: all var(--transition);
}

.card-title a:hover {
  color: var(--color-primary) !important;
}

.blog-card-secondary {
  height: 100%;
}

.blog-card-secondary .card-image-wrapper {
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

/* ============================================
   VALUES SECTION
   ============================================ */

.values-section {
  padding: var(--space-section) 0;
}

.value-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.value-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.value-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--color-primary-lighter) 0%, var(--color-primary-light) 100%);
  border-radius: 50%;
  margin: 0 auto;
}

.value-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 50%;
  color: var(--color-primary);
}

.value-card:hover .value-icon {
  transform: rotate(10deg) scale(1.1);
  transition: all var(--transition);
}

.value-title {
  color: var(--color-dark);
}

.value-description {
  line-height: 1.7;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}

.cta-section .btn-light {
  background-color: white;
  color: var(--color-primary);
  font-weight: 600;
}

.cta-section .btn-light:hover {
  background-color: var(--color-secondary-lighter);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background-color: var(--color-dark);
  color: white;
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: white;
}

.footer-description {
  line-height: 1.8;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 50%;
  transition: all var(--transition);
  text-decoration: none;
}

.social-link:hover {
  background-color: var(--color-primary);
  color: white;
  transform: translateY(-3px);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-link {
  text-decoration: none;
  transition: all var(--transition);
}

.footer-link:hover {
  color: var(--color-primary) !important;
  padding-left: 5px;
}

.footer-recent-posts {
  list-style: none;
  padding: 0;
}

.recent-post-item {
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.recent-post-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.recent-post-title a:hover {
  color: var(--color-primary) !important;
}

.footer-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright {
  font-size: 0.875rem;
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */

.btn-back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--color-primary);
  color: white;
  border: none;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.btn-back-to-top:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   BREADCRUMB
   ============================================ */

.breadcrumb-container {
  background-color: var(--color-secondary-lighter);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.breadcrumb {
  padding: 0.75rem 0;
  background-color: transparent;
  font-size: 0.875rem;
  font-weight: 500;
}

.breadcrumb-item {
  color: var(--color-text-light);
}

.breadcrumb-item a {
  color: var(--color-text);
  text-decoration: none;
  transition: all var(--transition);
  position: relative;
  padding-bottom: 2px;
}

.breadcrumb-item a:hover {
  color: var(--color-primary);
}

.breadcrumb-item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width var(--transition);
}

.breadcrumb-item a:hover::after {
  width: 100%;
}

.breadcrumb-item.active {
  color: var(--color-primary);
  font-weight: 600;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  color: var(--color-text-light);
  padding-right: 0.5rem;
  font-size: 1.125rem;
  font-weight: 300;
}

/* Version compacte pour mobile */
@media (max-width: 767px) {
  .breadcrumb {
    font-size: 0.75rem;
    padding: 0.5rem 0;
  }

  .breadcrumb-item + .breadcrumb-item::before {
    font-size: 1rem;
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 991px) {
  :root {
    --space-section: 3rem;
  }
  
  body {
    padding-top: 66px;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-section {
    padding-top: 1rem;
  }
  
  .navbar-nav {
    padding: 1rem 0;
  }
  
  .nav-link::after {
    display: none;
  }
  
  .nav-item {
    padding: 0.5rem 0;
  }
}

@media (max-width: 767px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content .lead {
    font-size: 1.125rem;
  }
  
  .display-3 {
    font-size: 2.5rem;
  }
  
  .display-4 {
    font-size: 2rem;
  }
  
  .display-5 {
    font-size: 1.75rem;
  }
  
  .display-6 {
    font-size: 1.5rem;
  }
  
  .about-badge {
    bottom: 15px;
    right: 15px;
    padding: 1rem;
    min-width: 100px;
  }
  
  .about-badge strong {
    font-size: 1.5rem;
  }
  
  .value-icon-wrapper {
    width: 80px;
    height: 80px;
  }
  
  .value-icon {
    width: 65px;
    height: 65px;
  }
  
  .value-icon i {
    font-size: 2rem;
  }
  
  .btn-back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }    .article-content .table-responsive {
        font-size: 0.85rem;
    }
}

/* ============================================
   UTILITIES
   ============================================ */

.object-fit-cover {
  object-fit: cover;
}

.shadow-sm {
  box-shadow: var(--shadow-sm) !important;
}

.shadow-md {
  box-shadow: var(--shadow-md) !important;
}

.shadow-lg {
  box-shadow: var(--shadow-lg) !important;
}

/* Scroll smooth */
html {
  scroll-behavior: smooth;
}

/* Selection color */
::selection {
  background-color: var(--color-primary-lighter);
  color: var(--color-dark);
}

::-moz-selection {
  background-color: var(--color-primary-lighter);
  color: var(--color-dark);
}

.table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.5rem 0;
}

.table {
    min-width: 600px; /* Largeur minimale pour garder la lisibilité */
}

.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.5rem 0;
}

.table-wrapper table {
    min-width: 600px; /* Largeur minimale pour garder la lisibilité */
}