/* ============================================
   FLAT MINIMAL UI DESIGN
   Couleurs: #ffd801 (jaune), #fcfdfb (blanc), #185981 (bleu)
   ============================================ */

:root {
  --primary-yellow: #ffd801;
  --primary-white: #fcfdfb;
  --primary-blue: #185981;
  --text-dark: #1a1a1a;
  --text-light: #666666;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 12px;
  --border-radius-lg: 16px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--primary-white);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}

/* ============================================
   GLOBAL FLOATING BLOBS BACKGROUND
   ============================================ */

.global-blobs-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.floating-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.3;
  pointer-events: none;
  animation: blobFloat 20s ease-in-out infinite;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.floating-blob.yellow {
  background: var(--primary-yellow);
}

.floating-blob.blue {
  background: var(--primary-blue);
}

.floating-blob.white {
  background: rgba(252, 253, 251, 0.5);
}

@keyframes blobFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  25% {
    transform: translate3d(100px, -50px, 0) scale(1.1);
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
  }
  50% {
    transform: translate3d(-80px, 80px, 0) scale(0.9);
    border-radius: 50% 50% 50% 50% / 60% 40% 60% 40%;
  }
  75% {
    transform: translate3d(50px, 50px, 0) scale(1.05);
    border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%;
  }
}

@keyframes blobFloat2 {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
    border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%;
  }
  33% {
    transform: translate3d(-120px, 60px, 0) scale(1.15);
    border-radius: 60% 40% 40% 60% / 60% 60% 40% 40%;
  }
  66% {
    transform: translate3d(90px, -70px, 0) scale(0.85);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
}

@keyframes blobFloat3 {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
    border-radius: 50% 50% 50% 50% / 60% 40% 60% 40%;
  }
  50% {
    transform: translate3d(-60px, 100px, 0) scale(1.2);
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
  }
}

/* ============================================
   HEADER FLAT MINIMAL - Style sombre avec #185981
   ============================================ */

.topbar {
  background: rgba(24, 89, 129, 0.3) !important;
  backdrop-filter: blur(10px);
  box-shadow: none !important;
  border-bottom: none;
  padding: 1rem 0;
  transition: all var(--transition-normal);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.topbar.scrolled {
  background: #185981 !important;
  backdrop-filter: blur(0);
  box-shadow: none;
  padding: 0.75rem 0;
}

.topbar-brand img {
  height: 45px;
  transition: transform var(--transition-normal);
  filter: none;
}

.topbar-brand:hover img {
  transform: scale(1.05);
}

.topbar-navigation .menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.topbar-navigation .menu-item {
  position: relative;
}

.topbar-navigation .menu-link {
  color: rgba(252, 253, 251, 0.9) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: 0;
  transition: color var(--transition-fast);
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.topbar-navigation .menu-link::after {
  display: none;
}

.topbar-navigation .menu-link:hover {
  color: var(--primary-white) !important;
  background: transparent;
}

.topbar-navigation .menu-link .badge {
  background: var(--primary-yellow);
  color: #185981;
  padding: 0.15rem 0.4rem;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-left: 0.3rem;
  text-transform: lowercase;
}

.topbar-btn {
  color: var(--primary-white) !important;
  transition: opacity var(--transition-fast);
  border-radius: 0;
  padding: 0.5rem;
  position: relative;
  background: transparent;
  border: none;
}

.topbar-btn::after {
  display: none;
}

.topbar-btn:hover {
  color: var(--primary-white) !important;
  opacity: 0.8;
}

.topbar-btn.has-new {
  position: relative;
}

.topbar-btn.has-new::before {
  content: '';
  position: absolute;
  top: 5px;
  right: 5px;
  width: 8px;
  height: 8px;
  background: #ff0000;
  border-radius: 50%;
  border: 2px solid #185981;
}

.avatar {
  border-radius: 50%;
  border: 2px solid rgba(252, 253, 251, 0.3);
  transition: all var(--transition-normal);
}

.avatar:hover {
  border-color: var(--primary-white);
  opacity: 0.9;
}

.btn-outline {
  border: 2px solid rgba(252, 253, 251, 0.5);
  color: var(--primary-white);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(252, 253, 251, 0.1);
  color: var(--primary-white);
  border-color: var(--primary-white);
  transform: none;
}

/* Menu toggler et divider pour header sombre */
.topbar-menu-toggler {
  color: var(--primary-white) !important;
}

.topbar-divider {
  background: rgba(252, 253, 251, 0.2);
}

/* Dropdown menu pour header sombre */
.topbar .dropdown-menu {
  background: var(--primary-white);
  border: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.topbar .dropdown-item {
  color: var(--text-dark);
}

.topbar .dropdown-item:hover {
  background: rgba(24, 89, 129, 0.1);
  color: var(--primary-blue);
}

.btn {
  border-radius: var(--border-radius);
  font-weight: 500;
  padding: 0.625rem 1.5rem;
  transition: all var(--transition-normal);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--primary-blue);
  color: var(--primary-white);
}

.btn-primary:hover {
  background: var(--primary-yellow);
  color: var(--text-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue);
  background: transparent;
}

.btn-outline:hover {
  background: var(--primary-blue);
  color: var(--primary-white);
  transform: translateY(-2px);
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.main-content {
  min-height: calc(100vh - 200px);
  padding: 2rem 0;
}

/* ============================================
   CARDS FLAT MINIMAL
   ============================================ */

.card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  background: var(--primary-white);
  overflow: hidden;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-yellow), var(--primary-blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal);
}

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

.card:hover::before {
  transform: scaleX(1);
}

.card-img-top {
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  transition: transform var(--transition-slow);
  object-fit: cover;
}

.card:hover .card-img-top {
  transform: scale(1.05);
}

.card-body {
  padding: 1.5rem;
}

.card-footer {
  background: transparent;
  border-top: 1px solid rgba(24, 89, 129, 0.1);
  padding: 1rem 1.5rem;
}

/* ============================================
   HERO SECTION - PARALLAX
   ============================================ */

.hero-parallax {
  position: relative;
  overflow: hidden;
  min-height: 90vh;
  background: linear-gradient(135deg, var(--primary-blue) 0%, rgba(24, 89, 129, 0.9) 100%);
}

.hero-parallax::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,216,1,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--primary-white);
  padding: 2rem;
}

.hero-content.hero-text-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 2rem 5rem 2rem;
  text-align: left;
}

.hero-content h1,
.hero-title-large {
  font-size: clamp(1.2rem, 3vw, 2.5rem);
  font-weight: 700;
  margin: 0;
  line-height: 1.4;
  color: var(--primary-white) !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.3px;
}

.hero-content.hero-text-bottom h1,
.hero-content.hero-text-bottom .hero-title-large {
  font-size: clamp(1.3rem, 3.5vw, 2.8rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.5;
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 2rem;
  opacity: 0.95;
}

.hero-cta {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--primary-yellow);
  color: var(--text-dark);
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 20px rgba(255, 216, 1, 0.4);
}

.hero-cta:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 30px rgba(255, 216, 1, 0.6);
  color: var(--text-dark);
}

/* ============================================
   CALLTOUT FLAT MINIMAL
   ============================================ */

.callout {
  border: none;
  border-radius: var(--border-radius);
  padding: 2rem;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, rgba(255, 216, 1, 0.1) 0%, rgba(24, 89, 129, 0.05) 100%);
  border-left: 4px solid var(--primary-yellow);
  box-shadow: var(--shadow-sm);
}

.callout h5 {
  color: var(--primary-blue);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.callout p {
  color: var(--text-light);
  margin: 0;
}

/* ============================================
   BUTTONS MICRO-INTERACTIONS
   ============================================ */

.btn-square {
  border-radius: var(--border-radius);
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
  position: relative;
}

.btn-square::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.4s, height 0.4s;
}

.btn-square:hover::after {
  width: 100px;
  height: 100px;
}

.btn-square:hover {
  transform: rotate(5deg) scale(1.1);
}

/* ============================================
   HEXAGON ANIMATIONS (pour hero)
   ============================================ */

.hexagon-shape {
  position: absolute;
  background: var(--primary-yellow);
  opacity: 0.3;
  pointer-events: none;
  clip-path: polygon(30% 0%, 70% 0%, 100% 50%, 70% 100%, 30% 100%, 0% 50%);
  animation: hexagonFloat 15s ease-in-out infinite;
}

.hexagon-shape.blue {
  background: rgba(24, 89, 129, 0.4);
}

.hexagon-shape.gray {
  background: rgba(252, 253, 251, 0.2);
}

@keyframes hexagonFloat {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0.3;
  }
  25% {
    transform: translate(30px, -20px) rotate(60deg);
    opacity: 0.4;
  }
  50% {
    transform: translate(-20px, 30px) rotate(120deg);
    opacity: 0.25;
  }
  75% {
    transform: translate(20px, 20px) rotate(180deg);
    opacity: 0.35;
  }
}

/* ============================================
   MORPHING ANIMATIONS (pour footer)
   ============================================ */

.morphing-shape {
  position: absolute;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  background: var(--primary-yellow);
  opacity: 0.1;
  animation: morphing 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes morphing {
  0%, 100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    transform: translate(20px, -20px) rotate(90deg);
  }
  50% {
    border-radius: 30% 70% 70% 30% / 70% 30% 30% 70%;
    transform: translate(-20px, 20px) rotate(180deg);
  }
  75% {
    border-radius: 70% 30% 30% 70% / 30% 70% 70% 30%;
    transform: translate(20px, 20px) rotate(270deg);
  }
}

/* ============================================
   FOOTER FLAT MINIMAL
   ============================================ */

.site-footer {
  background: var(--primary-blue);
  color: var(--primary-white);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-yellow), transparent);
}

.site-footer a {
  color: var(--primary-white);
  text-decoration: none;
  transition: all var(--transition-fast);
  position: relative;
}

.site-footer a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-yellow);
  transition: width var(--transition-normal);
}

.site-footer a:hover {
  color: var(--primary-yellow);
}

.site-footer a:hover::after {
  width: 100%;
}

/* ============================================
   FORM ELEMENTS FLAT MINIMAL
   ============================================ */

.form-control {
  border: 2px solid rgba(24, 89, 129, 0.2);
  border-radius: var(--border-radius);
  padding: 0.75rem 1rem;
  transition: all var(--transition-normal);
  background: var(--primary-white);
}

.form-control:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 4px rgba(24, 89, 129, 0.1);
  outline: none;
}

/* ============================================
   GALLERY / IMAGES
   ============================================ */

.gallery-item {
  border-radius: var(--border-radius);
  overflow: hidden;
  position: relative;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.gallery-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 216, 1, 0.8), rgba(24, 89, 129, 0.8));
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--transition-slow);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-primary-yellow {
  color: var(--primary-yellow) !important;
}

.text-primary-blue {
  color: var(--primary-blue) !important;
}

.bg-primary-yellow {
  background-color: var(--primary-yellow) !important;
}

.bg-primary-blue {
  background-color: var(--primary-blue) !important;
}

.bg-primary-white {
  background-color: var(--primary-white) !important;
}

/* Smooth transitions */
.smooth-transition {
  transition: all var(--transition-normal);
}

/* Hover lift effect */
.hover-lift {
  transition: transform var(--transition-normal);
}

.hover-lift:hover {
  transform: translateY(-8px);
}

/* Pulse animation */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* ============================================
   DROPDOWN MENU FLAT MINIMAL
   ============================================ */

.dropdown-menu {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  margin-top: 0.5rem;
  background: var(--primary-white);
  animation: dropdownFadeIn 0.3s ease-out;
}

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

.dropdown-item {
  border-radius: var(--border-radius);
  padding: 0.75rem 1rem;
  transition: all var(--transition-fast);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dropdown-item i {
  width: 20px;
  text-align: center;
  color: var(--primary-blue);
}

.dropdown-item:hover {
  background: rgba(255, 216, 1, 0.1);
  color: var(--primary-blue);
  transform: translateX(5px);
}

.dropdown-divider {
  margin: 0.5rem 0;
  border-top: 1px solid rgba(24, 89, 129, 0.1);
}

/* ============================================
   BADGE FLAT MINIMAL
   ============================================ */

.badge {
  background: var(--primary-yellow);
  color: var(--primary-blue);
  padding: 0.25rem 0.5rem;
  border-radius: var(--border-radius);
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
}

/* ============================================
   DIVIDER FLAT MINIMAL
   ============================================ */

.divider {
  text-align: center;
  margin: 3rem 0;
  position: relative;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-blue);
}

.divider::before,
.divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-yellow), transparent);
}

.divider::before {
  left: 0;
}

.divider::after {
  right: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .card {
    margin-bottom: 1.5rem;
  }
  
  .topbar-navigation .menu-link {
    padding: 0.5rem;
    font-size: 0.875rem;
  }
  
  .hero-parallax {
    min-height: 50vh;
  }
  
  .morphing-shape {
    display: none;
  }
  
  /* Optimisation des Floating Blobs pour mobile */
  .floating-blob {
    filter: blur(30px) !important;
    opacity: 0.15 !important;
    animation-duration: 30s !important;
    animation-timing-function: linear !important;
  }
  
  /* Réduire le nombre de blobs visibles sur mobile */
  .global-blobs-container .floating-blob:nth-child(n+4) {
    display: none;
  }
}

/* Désactiver les animations pour les utilisateurs qui préfèrent réduire les animations */
@media (prefers-reduced-motion: reduce) {
  .floating-blob {
    animation: none !important;
    transform: translateZ(0) !important;
  }
}

/* ============================================
   LOADING STATES
   ============================================ */

.loading-shimmer {
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0) 0%, 
    rgba(255, 255, 255, 0.3) 50%, 
    rgba(255, 255, 255, 0) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

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

/* ============================================
   ADS CAROUSEL FLAT MINIMAL
   ============================================ */

.ads-carousel {
  position: relative;
  box-shadow: var(--shadow-lg);
}

.ads-slide {
  border-radius: var(--border-radius);
}

.ads-overlay {
  z-index: 2;
}

.ads-carousel .swiper-pagination {
  bottom: 20px !important;
  z-index: 10;
}

.ads-carousel .swiper-pagination-bullet {
  background: var(--primary-white);
  opacity: 0.5;
  width: 12px;
  height: 12px;
  margin: 0 4px;
  transition: all var(--transition-fast);
}

.ads-carousel .swiper-pagination-bullet-active {
  background: var(--primary-yellow);
  opacity: 1;
  width: 24px;
  border-radius: 6px;
}

.ads-carousel .swiper-button-next,
.ads-carousel .swiper-button-prev {
  color: var(--primary-white);
  background: rgba(24, 89, 129, 0.7);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  transition: all var(--transition-normal);
  backdrop-filter: blur(10px);
}

.ads-carousel .swiper-button-next:hover,
.ads-carousel .swiper-button-prev:hover {
  background: var(--primary-yellow);
  color: var(--primary-blue);
  transform: scale(1.1);
}

.ads-carousel .swiper-button-next::after,
.ads-carousel .swiper-button-prev::after {
  font-size: 20px;
  font-weight: 700;
}

.ads-carousel .swiper-slide {
  height: auto;
}

.ads-carousel .swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .ads-carousel .swiper-button-next,
  .ads-carousel .swiper-button-prev {
    width: 40px;
    height: 40px;
  }
  
  .ads-carousel .swiper-button-next::after,
  .ads-carousel .swiper-button-prev::after {
    font-size: 16px;
  }
  
  .ads-overlay h3 {
    font-size: 1.3rem !important;
  }
}

/* ============================================
   FORMATION CARDS - Alignement à gauche
   ============================================ */

/* Forcer l'alignement à gauche pour le container et les rows contenant des cards */
.main-content .container {
  text-align: left !important;
}

.row.cards-row {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
  text-align: left !important;
}

.row.cards-row > .col-md-6,
.row.cards-row > .col-lg-4 {
  margin-left: 0 !important;
  margin-right: 15px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  flex: 0 0 auto !important;
  max-width: none !important;
}

.row.cards-row > .col-md-6:first-child,
.row.cards-row > .col-lg-4:first-child {
  margin-left: 0 !important;
  padding-left: 0 !important;
}

/* Calculer la largeur correcte pour les colonnes */
@media (min-width: 768px) {
  .row.cards-row > .col-md-6 {
    width: calc(50% - 7.5px) !important;
    max-width: calc(50% - 7.5px) !important;
  }
}

@media (min-width: 992px) {
  .row.cards-row > .col-lg-4 {
    width: calc(33.333333% - 10px) !important;
    max-width: calc(33.333333% - 10px) !important;
  }
}

.row.cards-row > .card-group {
  width: 100%;
  margin-left: 0;
  padding-left: 0;
}

.card-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start !important;
  align-items: stretch;
  width: 100%;
  margin-left: 0;
  padding-left: 0;
}

.card-group .card {
  margin-bottom: 1.5rem;
  margin-right: 1rem;
  margin-left: 0;
}

/* Mobile - Assurer la visibilité */
@media (max-width: 767px) {
  .row.cards-row {
    justify-content: flex-start !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  .row.cards-row > .col-md-6,
  .row.cards-row > .col-lg-4 {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  .card-group {
    justify-content: flex-start !important;
  }
  
  .card-group .card {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .card-group .card.col-md-6 {
    flex: 0 0 calc(50% - 1rem);
    max-width: calc(50% - 1rem);
  }
}

@media (min-width: 992px) {
  .card-group .card.col-lg-4 {
    flex: 0 0 calc(33.333% - 1rem);
    max-width: calc(33.333% - 1rem);
  }
}

/* ============================================
   TEASER HONEY - Améliorations Flat Minimal
   ============================================ */

.teaser-honey figcaption::before {
  background: var(--primary-yellow) !important;
  height: 4px;
}

.teaser-honey h1,
.teaser-honey h5 {
  color: var(--primary-white) !important;
  font-weight: 600;
  text-transform: none;
}

.teaser-honey h1 span {
  color: var(--primary-yellow) !important;
  font-weight: 700;
}

.teaser-honey h1 i,
.teaser-honey h5 i {
  color: var(--primary-yellow) !important;
  font-style: italic;
}

.teaser-honey figcaption > a {
  position: absolute;
  bottom: 1.5em;
  left: 1.5em;
  padding: 0.75rem 1.5rem;
  background: var(--primary-yellow);
  color: var(--primary-blue);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-normal);
  opacity: 0;
  transform: translateY(10px);
  text-indent: 0;
  white-space: normal;
}

.teaser-honey:hover figcaption > a {
  opacity: 1;
  transform: translateY(0);
}

.teaser-honey figcaption > a:hover {
  background: var(--primary-blue);
  color: var(--primary-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

