:root {
  --primary: #0056d2;
  --primary-light: #5d96e3;
  --primary-dark: #2c5aa0;
  --secondary: #2ecc71;
  --accent: #ffeb3b;
  --danger: #e74c3c;
  --warning: #f39c12;
  --light: #f8f9fa;
  --dark: #343a40;
  --gray: #6c757d;
  --gray-light: #e9ecef;
  --text: #222;
  --bg: #f9f9fb;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --font-main: 'Outfit', sans-serif;
  --transition: all 0.3s ease;
}

/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Empêcher tout débordement horizontal de la page */
* {
  max-width: 100%;
}

/* Exception pour les éléments qui doivent déborder dans leur conteneur */
.table-responsive *,
.table-responsive table {
  max-width: none;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  height: 100%;
  max-width: 100vw;
}

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
}

#bodyaccueil {
  padding-bottom: 0;
  overflow-x: hidden;
}

/* Global elements */
img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius);
  transition: transform 0.3s ease;
}

img:hover {
  transform: scale(1.02);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

a {
  text-decoration: none;
  transition: color 0.3s;
}

/* Buttons */
.btn {
  padding: 0.7rem 1.5rem;
  border: none;
  cursor: pointer;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  font-family: var(--font-main);
  display: inline-block;
}

.btn-main, .btn-primary {
  background: var(--primary);
  color: white;
  padding: 1rem 2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
}

.btn-main:hover, .btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(58, 123, 213, 0.3);
}

.btn-secondary {
  background: white;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 1rem 2rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
}

.btn-delete {
  background-color: #fff5f5;
  color: #e53e3e;
}

.btn-delete:hover {
  background-color: #e53e3e;
  color: white;
}

.btn-animated {
  padding: 1rem 1.6rem;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-animated::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.2);
  transition: left 0.4s ease;
}

.btn-animated:hover::after {
  left: 100%;
}

/* Navbar */
.navbar {
  background: white;
  padding: 1.2rem 0;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 999;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem !important;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links > a {
  text-decoration: none;
  font-weight: 500;
  color: var(--text);
  padding: 0.5rem 1rem;
  transition: color 0.3s;
}

.nav-links > a:hover {
  color: var(--primary);
}

.btn-nav {
  padding: 0.5rem 1.2rem;
  background: var(--primary);
  color: white !important;
  border-radius: 999px;
}

.btn-nav:hover {
  color: lightblue;
}

/* Dropdown menu */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  color: var(--text);
  cursor: pointer;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 500;
  font-family: var(--font-main);
}

.dropdown-toggle:hover {
  color: var(--primary);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  min-width: 200px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  border-radius: var(--radius);
  z-index: 1000;
  padding: 0.5rem 0;
}

.dropdown-menu a {
  display: block;
  color: var(--text);
  padding: 0.8rem 1.5rem;
  text-decoration: none;
}

.dropdown-menu a:hover {
  background-color: #f8f9fa;
  color: var(--primary);
}

/* Burger menu */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  width: 30px;
  height: 25px;
  gap: 5px;
  z-index: 1002;
}

.burger span {
  height: 3px;
  width: 100%;
  background: var(--text);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* Hero section */
.hero {
  padding: 6rem 1rem 5rem;
  background: linear-gradient(135deg, #e3f2fd, #ffffff);
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  color: #444;
}

.hero-text span {
  color: var(--primary);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-mockup img {
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Features section */
.features {
  padding: 5rem 1rem;
  text-align: center;
}

.features h2 {
  font-size: 2rem;
  margin-bottom: 2.5rem;
}

.features-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.feature {
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Why section */
.why {
  padding: 5rem 0;
  background: #fff;
}

.why-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.why-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.why-text p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.why-text ul {
  list-style: none;
  padding-left: 0;
}

.why-text li {
  margin: 0.5rem 0;
}

/* Testimonials */
.testimonials {
  background: var(--bg);
  padding: 5rem 1rem;
  text-align: center;
}

.testimonials h2 {
  font-size: 2rem;
  margin-bottom: 3rem;
}

.testimonial-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.testimonial {
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
  max-width: 300px;
  box-shadow: var(--shadow);
}

.testimonial span {
  display: block;
  margin-top: 1rem;
  color: #777;
  font-style: italic;
}

/* CTA section */
.cta {
  background: var(--primary);
  color: white;
  text-align: center;
  padding: 4rem 1rem;
}

.cta h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

/* Newsletter */
.newsletter {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 4rem 1rem;
  text-align: center;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.newsletter h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.newsletter p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #555;
}

.newsletter-form {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.newsletter-form .form-group {
  position: relative;
  width: 300px;
  max-width: 90%;
}

.newsletter-form input[type="email"],
.form-group input[type="text"],
.form-group input {
  width: 100%;
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid #ccc;
  font-size: 1rem;
  outline: none;
  background: white;
  transition: all 0.2s ease;
}

.newsletter-form label,
.form-group label {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
  pointer-events: none;
  transition: 0.2s ease;
  background: white;
  padding: 0 0.25rem;
}

.newsletter-form input:focus + label,
.newsletter-form input:not(:placeholder-shown) + label,
.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label {
  top: 0.2rem;
  left: 1rem;
  font-size: 0.75rem;
  color: var(--primary);
}

.newsletter-form button {
  padding: 1.2rem 1.6rem;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s;
}

.newsletter-form button:hover {
  background-color: var(--primary-dark);
}

.newsletter small {
  color: #888;
  font-size: 0.85rem;
}

/* Newsletter messages */
.newsletter-message {
  margin: 30px auto;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  max-width: 500px;
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  animation: fadeInMessage 0.6s ease;
  text-align: center;
  border-left: 6px solid;
}

.msg-success {
  background: #d1fae5;
  color: #047857;
  border-color: #10b981;
}

.msg-error {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #ef4444;
}

.msg-info {
  background: #bfdbfe;
  color: #1d4ed8;
  border-color: #3b82f6;
}

/* Popup */
.slide-in-popup {
  position: fixed;
  bottom: -100%;
  right: 20px;
  width: 320px;
  background: white;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  z-index: 9999;
  transition: bottom 0.6s ease;
  font-size: 0.95rem;
}

.slide-in-popup.active {
  bottom: 20px;
}

.slide-in-popup h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.slide-in-popup p {
  margin-bottom: 1rem;
  color: #444;
}

.slide-in-popup input[type="email"] {
  width: 100%;
  padding: 0.7rem;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
}

.slide-in-popup button[type="submit"] {
  width: 100%;
  padding: 0.7rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
}

.slide-in-popup .close-btn {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 1.3rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
}

/* Blog section */
.blog {
  padding: 6rem 1rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  text-align: center;
  min-height: 100vh;
}

.blog h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #2c3e50 0%, #0056d2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  animation: fadeInDown 0.8s ease;
  padding-bottom: 1.5rem;
}

.blog h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, #0056d2 0%, #2ecc71 100%);
  border-radius: 2px;
}

.blog h2 i {
  background: linear-gradient(135deg, #0056d2 0%, #2ecc71 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: stretch;
}

.blog-card {
  background: white;
  padding: 0;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
  position: relative;
  min-height: 500px;
  border: 2px solid #f8f9fa;
}

.blog-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 86, 210, 0.15);
  border-color: var(--primary);
}

.blog-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, #2ecc71 100%);
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
}

.blog-card:hover::before {
  transform: scaleX(1);
}

.blog-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.4s ease;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.blog-card:hover img {
  transform: scale(1.1);
}

.blog-card h3 {
  font-size: 1.5rem;
  margin: 1.5rem 2rem 1rem;
  color: #2c3e50;
  font-weight: 700;
  line-height: 1.4;
  transition: color 0.3s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card:hover h3 {
  color: var(--primary);
}

.blog-card p {
  font-size: 1rem;
  color: #6c757d;
  margin: 0 2rem 1.5rem;
  line-height: 1.7;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 2rem 2rem;
  margin-top: auto;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--primary) 0%, #003d9a 100%);
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  align-self: flex-start;
  box-shadow: 0 4px 15px rgba(0, 86, 210, 0.25);
  position: relative;
  overflow: hidden;
}

.read-more::after {
  content: '→';
  transition: transform 0.3s ease;
}

.read-more:hover::after {
  transform: translateX(5px);
}

.read-more::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;
}

.read-more:hover::before {
  left: 100%;
}

.read-more:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 86, 210, 0.35);
}

.date-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
  color: white;
  font-size: 0.85rem;
  padding: 0.6rem 1rem;
  border-radius: 20px;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.date-badge::before {
  content: '📅';
  font-size: 0.9rem;
}

.blog-card:hover .date-badge {
  transform: scale(1.1) rotate(-3deg);
  box-shadow: 0 6px 20px rgba(46, 204, 113, 0.5);
}

/* Blog filters */
.blog-filters {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 3rem auto;
  max-width: 800px;
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

.blog-filters:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.blog-filters input[type="text"],
.blog-filters select {
  padding: 1rem 1.5rem;
  border-radius: 12px;
  border: 2px solid #e9ecef;
  font-size: 1rem;
  width: 280px;
  max-width: 100%;
  transition: all 0.3s ease;
  background: #f8f9fa;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
}

.blog-filters input[type="text"]:focus,
.blog-filters select:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(0, 86, 210, 0.1);
  transform: translateY(-2px);
}

.blog-filters input[type="text"]::placeholder {
  color: #adb5bd;
}

.blog-filters select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%230056d2' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
  padding-right: 3rem;
  appearance: none;
}

.blog-filters button {
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, #003d9a 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 6px 20px rgba(0, 86, 210, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.blog-filters button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.blog-filters button:hover::before {
  left: 100%;
}

.blog-filters button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 86, 210, 0.35);
}

.blog-filters button:active {
  transform: translateY(-1px);
}

/* Pagination */
.pagination {
  margin-top: 4rem;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding: 2rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
  max-width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.pagination a {
  padding: 0.8rem 1.2rem;
  min-width: 45px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border: 2px solid #e9ecef;
  color: var(--primary);
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.pagination a:hover {
  background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
  border-color: var(--primary);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 86, 210, 0.2);
}

.pagination a.active {
  background: linear-gradient(135deg, var(--primary) 0%, #003d9a 100%);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 6px 20px rgba(0, 86, 210, 0.3);
  transform: scale(1.1);
  cursor: default;
}

.pagination a.active:hover {
  transform: scale(1.1);
}

.pagination .dots {
  padding: 0.8rem 0.5rem;
  color: #adb5bd;
  font-weight: 700;
  font-size: 1.2rem;
}

/* No Results Message */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 2px dashed #e9ecef;
  margin: 2rem 0;
}

.no-results-icon {
  font-size: 5rem;
  margin-bottom: 1.5rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

.no-results h3 {
  font-size: 2rem;
  font-weight: 800;
  color: #2c3e50;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #2c3e50 0%, #0056d2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.no-results p {
  font-size: 1.1rem;
  color: #6c757d;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.no-results .btn-main {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Article page */
.article-page {
  padding: 5rem 1rem;
  background: var(--bg);
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  max-width: 1200px;
  margin: auto;
  align-items: start;
}

.article-header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.article-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.3;
  background: linear-gradient(135deg, #2c3e50 0%, #0056d2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.6s ease;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.article-date {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  color: #6c757d;
  background: #f8f9fa;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.article-date i {
  color: #0056d2;
  font-size: 1.1rem;
}

.article-image {
  margin-bottom: 2.5rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  position: relative;
  transition: transform 0.3s ease;
}

.article-image:hover {
  transform: scale(1.02);
}

.article-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.article-image:hover img {
  transform: scale(1.05);
}

.article-content {
  font-size: 1.1rem;
  color: #333;
  line-height: 1.8;
  text-align: justify;
}

.article-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1.2rem;
  font-size: 1.8rem;
  font-weight: 700;
  color: #2c3e50;
  position: relative;
  padding-left: 1rem;
  border-left: 4px solid #0056d2;
}

.article-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.4rem;
  font-weight: 600;
  color: #495057;
}

.article-content p {
  margin: 1.2rem 0;
}

.article-content ul, .article-content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.article-content li {
  margin: 0.8rem 0;
  line-height: 1.8;
}

.article-content strong {
  color: #2c3e50;
  font-weight: 700;
}

.article-content a {
  color: #0056d2;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.article-content a:hover {
  color: #003d9a;
}

.back-to-blog {
  margin-top: 3rem;
  text-align: center;
}

.back-to-blog .btn-main {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(0, 86, 210, 0.25);
  transition: all 0.3s ease;
}

.back-to-blog .btn-main:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 86, 210, 0.35);
}

.back-to-blog .btn-main i {
  transition: transform 0.3s ease;
}

.back-to-blog .btn-main:hover i {
  transform: translateX(-5px);
}

/* Social Share Section */
.social-share {
  margin: 3rem 0;
  padding: 2.5rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  border: 2px solid #e9ecef;
  text-align: center;
  transition: all 0.3s ease;
}

.social-share:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.social-share h4 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.social-icons a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.social-icons a:hover::before {
  opacity: 1;
}

.social-icons a i {
  font-size: 1.5rem;
  color: white;
  z-index: 1;
  transition: transform 0.3s ease;
}

.social-icons a:hover {
  transform: translateY(-8px) scale(1.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.social-icons a:hover i {
  transform: scale(1.15);
}

/* Couleurs spécifiques pour chaque réseau */
.social-icons a:nth-child(1) {
  background: linear-gradient(135deg, #1877f2 0%, #0d5dbf 100%);
}

.social-icons a:nth-child(2) {
  background: linear-gradient(135deg, #000000 0%, #333333 100%);
}

.social-icons a:nth-child(3) {
  background: linear-gradient(135deg, #0077b5 0%, #005885 100%);
}

.social-icons a:nth-child(4) {
  background: linear-gradient(135deg, #ea4335 0%, #c5221f 100%);
}

/* Animation d'entrée */
@keyframes socialFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.social-icons a {
  animation: socialFadeIn 0.5s ease forwards;
}

.social-icons a:nth-child(1) { animation-delay: 0.1s; }
.social-icons a:nth-child(2) { animation-delay: 0.2s; }
.social-icons a:nth-child(3) { animation-delay: 0.3s; }
.social-icons a:nth-child(4) { animation-delay: 0.4s; }

/* Responsive */
@media (max-width: 768px) {
  .social-share {
    padding: 2rem 1.5rem;
    margin: 2rem 0;
  }

  .social-share h4 {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
  }

  .social-icons {
    gap: 1rem;
  }

  .social-icons a {
    width: 50px;
    height: 50px;
  }

  .social-icons a i {
    font-size: 1.3rem;
  }
}

.related-articles {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  border: 2px solid #e9ecef;
  position: sticky;
  top: 100px;
  height: fit-content;
  transition: all 0.3s ease;
}

.related-articles:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.related-articles h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, #003d9a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e9ecef;
}

.related-item {
  margin-bottom: 1.5rem;
  border-radius: 12px;
  overflow: hidden;
  background: white;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
}

.related-item:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 86, 210, 0.15);
  border-color: var(--primary);
}

.related-item a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.related-thumb {
  position: relative;
  overflow: hidden;
  height: 150px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.related-item:hover .related-thumb img {
  transform: scale(1.1);
}

.related-date {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, #003d9a 100%);
  color: white;
  font-size: 0.75rem;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 86, 210, 0.3);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.related-date::before {
  content: '📅';
  font-size: 0.8rem;
}

.related-meta {
  padding: 1.2rem;
  background: white;
}

.related-meta h4 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  color: #2c3e50;
  margin: 0;
  transition: color 0.3s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-item:hover .related-meta h4 {
  color: var(--primary);
}

/* Contact section */
.contact {
  background: linear-gradient(135deg, #eef3f6, #ffffff);
  padding: 5rem 1rem;
  text-align: center;
}

.contact h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.contact p {
  font-size: 1.05rem;
  margin-bottom: 2rem;
  color: #555;
  max-width: 600px;
  margin-inline: auto;
}

.contact-form {
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
  background: #fff;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-form .form-group {
  position: relative;
  margin-bottom: 1.8rem;
  width: 100%;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid #ccc;
  font-size: 1rem;
  outline: none;
  background: #fafafa;
  transition: border-color 0.3s, background-color 0.3s;
  box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  background: white;
}

.contact-form label {
  position: absolute;
  left: 1.2rem;
  top: 55%;
  transform: translateY(-50%);
  background: transparent;
  padding: 0 0.25rem;
  font-size: 0.95rem;
  transition: 0.2s ease;
  pointer-events: none;
}

.contact-form input:focus + label,
.contact-form input:not(:placeholder-shown) + label,
.contact-form textarea:focus + label,
.contact-form textarea:not(:placeholder-shown) + label {
  top: -0.7rem;
  left: 1rem;
  font-size: 0.75rem;
  color: var(--primary);
  background: #fff;
}

.btn-contact {
  width: 100%;
  font-size: 1rem;
  padding: 1rem;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-contact:hover {
  background-color: var(--primary-dark);
}

/* Login/Register */
.hero-login {
  padding: 3rem 1rem;
}

.hero-login .login-box {
  max-width: 500px;
  margin: auto;
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-login .login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.hero-login .login-header i {
  font-size: 3rem;
  color: var(--primary);
}

.hero-login .login-header h2 {
  margin-top: 1rem;
  color: var(--primary);
}

.hero-login .login-header p {
  color: #666;
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

.hero-login form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-login .login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.hero-login .login-options label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-login .login-options input[type="checkbox"] {
  margin: 0;
}

.hero-login .login-options a {
  color: var(--primary);
  text-decoration: none;
}

.hero-login .login-options a:hover {
  color: var(--primary-dark);
}

.hero-login .login-footer {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.95rem;
}

.hero-login .login-footer a {
  color: var(--primary);
  font-weight: 600;
}

.hero-login .login-footer a:hover {
  color: var(--primary-dark);
}

.hero-login .back-link {
  text-align: center;
  margin-top: 1.5rem;
}

.hero-login .back-link a {
  color: #666;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* Dashboard welcome */
.welcome-box {
  padding: 2rem 1rem 4rem;
  background-color: #f5f7fa;
}

.welcome-dashboard-wrapper {
  background: linear-gradient(to bottom, white, #f8f9fc);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 2.5rem;
  transition: transform 0.3s ease;
}

.dashboard-header {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  position: relative;
}

.profile-section {
  flex-shrink: 0;
  position: relative;
}

.profile-pic {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid white;
  box-shadow: 0 8px 25px rgba(58, 123, 213, 0.25);
  transition: all 0.4s ease;
}

.profile-pic:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(58, 123, 213, 0.4);
}

.welcome-dashboard {
  flex-grow: 1;
  display: flex;
  justify-content: flex-start;
  gap: 1.5rem;
  /*align-items: center;*/
  flex-wrap: wrap;
}

.welcome-text {
  flex: 1;
}

.welcome-text h1 {
  background: linear-gradient(45deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 800;
  animation: fadeInUp 0.6s ease-out;
}

.welcome-text p {
  font-size: 1.1rem;
  color: var(--gray);
  font-weight: 500;
  animation: fadeInUp 0.8s ease-out;
}

/* Dashboard cards */
.dashboard-boxes {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.dashboard-card {
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-align: center;
  flex: 1;
  min-width: 220px;
  max-width: 100%;
  position: relative;
  overflow: hidden;
  border-top: 4px solid var(--primary);
  transition: all 0.3s ease;
  margin-top: 20px;
  margin-bottom: 20px;
}

.dashboard-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(58, 123, 213, 0.15);
}

.dashboard-card h3 {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: var(--gray);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dashboard-card p {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
  position: relative;
  animation: countUp 2s ease-out;
}

/* Calendar */
.calendar-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1rem 0;
  padding: 1.2rem 1.5rem;
  background-color: #f8f9fc;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  justify-content: center;
}

.calendar-filters label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
  font-family: var(--font-main);
}

.calendar-filters label:hover {
  background-color: #eef4ff;
  border-color: var(--primary-light);
  transform: translateY(-2px);
}

.calendar-filters input[type="checkbox"] {
  accent-color: var(--primary);
  transform: scale(1.2);
  cursor: pointer;
}

.calendar-filters .emoji {
  font-size: 1.2rem;
  margin-right: 4px;
}

#calendar {
  margin-top: 1.5rem;
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius);
  padding: 1rem;
  background: white;
}

.fc-toolbar-title {
  font-family: var(--font-main);
  font-weight: 700;
  color: var(--primary);
}

.fc-button-primary {
  background-color: var(--primary) !important;
  border-color: var(--primary-dark) !important;
  transition: var(--transition);
}

.fc-button-primary:hover {
  background-color: var(--primary-dark) !important;
  transform: translateY(-2px);
}

.fc-daygrid-day-frame {
  transition: background-color 0.2s ease;
}

.fc-daygrid-day-frame:hover {
  background-color: #f8f9fc;
}

.fc-event {
  border-radius: 6px !important;
  border: none !important;
  padding: 3px 6px !important;
  font-weight: 500 !important;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.fc-event:hover {
  transform: scale(1.03);
  z-index: 10;
}

/* Charts */
#depensesChart {
  margin-top: 1.5rem;
  border-radius: var(--radius);
  padding: 1rem;
  background: white;
  box-shadow: var(--shadow-sm);
}

canvas {
  max-height: 350px;
}

/* Modals */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1050;
  background-color: rgba(0, 0, 0, 0.4);
  overflow-x: hidden;
  overflow-y: auto;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

.modal.show {
  display: flex;
  animation: fadeIn 0.4s ease-in-out;
}

.modal-dialog {
  background: white;
  border-radius: var(--radius);
  max-width: 550px;
  width: 90%;
  margin: auto;
  animation: scaleIn 0.3s ease-in-out;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  max-height: 85vh;
  overflow-y: auto;
}

.modal-lg {
  max-width: 800px;
  width: 90%;
}

.modal-header {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid #edf2f7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #f8fafc;
}

.modal-footer {
  padding: 1.2rem 1.5rem;
  border-top: 1px solid #edf2f7;
  text-align: right;
  background-color: #f8fafc;
}

.modal-title {
  margin: 0;
  font-weight: 700;
  color: var(--primary);
  font-size: 1.4rem;
}

.modal-body {
  padding: 1.5rem;
}

.modal-body strong {
  color: var(--primary-dark);
}

.modal-body form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-body label {
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: #333;
}

.modal-body input[type="text"],
.modal-body input[type="number"],
.modal-body input[type="date"],
.modal-body select {
  padding: 0.8rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  font-size: 1rem;
  outline: none;
  background: white;
  width: 100%;
}

.modal-body input:focus,
.modal-body select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

#calendarModalDate {
  font-size: 1.1rem;
  color: var(--gray);
  margin-bottom: 1.2rem;
  font-weight: 500;
}

.btn-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--gray);
  transition: var(--transition);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.btn-close:hover {
  background-color: #e2e8f0;
  color: var(--danger);
}

/* Fixed Action Button (FAB) */
.fab-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
}

.fab-button {
  width: 90px;
  height: 85px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 30px;
  box-shadow: 0 6px 20px rgba(0, 86, 210, 0.3);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  position: relative;
  overflow: hidden;
}

.fab-button::after {
  content: '';
  position: absolute;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 40%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.5s ease;
}

.fab-button:hover::after {
  transform: translate(-50%, -50%) scale(1);
}

.fab-button:hover {
  transform: scale(1.1) rotate(90deg);
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.fab-button:active {
  transform: scale(0.95) rotate(90deg);
}

.fab-button.active .fab-icon {
  transform: rotate(100deg);
}

.fab-icon {
  font-weight: 300;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fab-menu {
  position: absolute;
  bottom: 80px;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.9) translateY(20px);
  transition: var(--transition);
}

.fab-menu.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateY(0);
}

.fab-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.5rem;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  position: relative;
  overflow: hidden;
  transform: translateX(0);
  opacity: 0;
  border: 1px solid rgba(0, 86, 210, 0.05);
  min-width: 250px;
  width: 250px;
}

.fab-menu.active .fab-item {
  opacity: 1;
}

.fab-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.fab-item:hover {
  transform: translateX(-3px);
  color: white;
  box-shadow: var(--shadow);
  border-color: transparent;
}

.fab-item:hover::before {
  opacity: 1;
}

.fab-item i {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 18px;
  color: var(--primary);
  flex-shrink: 0;
}

.fab-item:hover i {
  color: white;
  transform: scale(1.1);
}

.fab-item span {
  white-space: nowrap;
  font-size: 0.95rem;
  flex: 1;
}

.fab-item:active {
  transform: translateX(-8px) scale(0.98);
}

.fab-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  backdrop-filter: blur(2px);
}

.fab-overlay.active {
  opacity: 1;
  visibility: visible;
}

.fab-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--danger);
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  border: 2px solid white;
}

/* Vehicles section */
.my-vehicles-section {
  margin-top: 2rem;
}

.no-vehicles {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8f9fc, #f0f4f8);
  border-radius: var(--radius);
  padding: 4rem 1rem;
  text-align: center;
  gap: 1.5rem;
  animation: fadeIn 0.8s ease;
}

.no-vehicles i {
  font-size: 5rem;
  color: var(--gray);
  opacity: 0.7;
}

.no-vehicles p {
  font-size: 1.2rem;
  color: var(--gray);
  margin: 0;
}

.vehicles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.vehicle-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid #edf2f7;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 450px; /* Augmenté de 400px à 450px */
}

.vehicle-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.vehicle-image {
  height: 200px;
  background-color: #f0f4f8;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vehicle-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.vehicle-no-image {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: #d1d5db;
  background: linear-gradient(135deg, #f2f6fc, #e6ebf5);
}

.vehicle-no-image i {
  font-size: 4rem;
  color: #b8c2cc;
}

.vehicle-info {
  padding: 1.8rem; /* Augmenté de 1.5rem à 1.8rem */
  display: flex;
  flex-direction: column;
  gap: 1.2rem; /* Augmenté de 1rem à 1.2rem */
  flex-grow: 1;
}

.vehicle-info h3 {
  margin: 0;
  font-size: 1.4rem; /* Augmenté de 1.25rem à 1.4rem */
  color: var(--primary);
  font-weight: 700;
}

.vehicle-details {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--gray);
  font-size: 0.95rem;
}

.vehicle-details span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.vehicle-details i {
  color: var(--primary-light);
}

/* AMÉLIORATION : Statistiques de coût du véhicule */
.vehicle-cost-stats {
  display: flex;
  gap: 0.8rem;
  padding: 1rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  border: 1px solid #dee2e6;
}

.cost-stat-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.cost-stat-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.cost-stat-item i {
  font-size: 1.2rem;
  color: var(--primary);
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cost-stat-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.cost-stat-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1;
}

.cost-stat-label {
  font-size: 0.7rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.vehicle-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: auto;
  flex-wrap: wrap;
}

.btn-vehicle-action {
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  background-color: #f0f4f8;
  color: var(--primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-vehicle-action:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.add-vehicle-btn {
  margin-top: 2rem;
  text-align: center;
}

/* Vehicle detail */
.vehicle-detail-wrapper {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
}

.vehicle-header {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}

.vehicle-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, #3498db, #2ecc71);
}

.vehicle-image-container {
  width: 180px;
  height: 180px;
  margin-right: 30px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #f1f1f1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.vehicle-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #2c3e50;
}

.vehicle-specs {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.vehicle-spec {
  display: flex;
  align-items: center;
  margin-right: 25px;
  margin-bottom: 10px;
}

.vehicle-spec i {
  margin-right: 8px;
  color: #3498db;
  width: 16px;
  text-align: center;
}

/* Dashboard cards for vehicle details */
.summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.summary-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 20px;
  text-align: center;
}

.summary-card i {
  font-size: 30px;
  margin-bottom: 15px;
  color: #3498db;
}

.summary-value {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 5px;
  color: #2c3e50;
}

.summary-label {
  color: #7f8c8d;
  font-size: 14px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ecf0f1;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  flex-wrap: wrap;
  gap: 10px;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  color: #2c3e50;
  display: flex;
  align-items: center;
}

.card-title i {
  margin-right: 10px;
  color: #3498db;
}

.add-new-btn {
  background: #3498db;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background 0.3s;
}

.add-new-btn:hover {
  background: #2980b9;
}

.add-new-btn i {
  margin-right: 5px;
}

/* Tables */
.table-responsive {
  overflow-x: auto;
  overflow-y: visible;
  width: 100%;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  position: relative;
  margin-bottom: 1rem;
}

/* DataTables wrapper - empêcher le débordement */
.table-responsive .dataTables_wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

/* Le scroll doit être sur le wrapper de la table, pas sur le wrapper DataTables */
.dataTables_wrapper .dataTables_scroll {
  width: 100%;
  overflow-x: auto;
}

.dataTables_wrapper .dataTables_scrollBody {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
  font-size: 14px;
  margin-bottom: 10px;
}

/* Empêcher les contrôles DataTables de forcer une largeur fixe */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
  display: inline-block;
  max-width: 100%;
  overflow: visible;
}

table {
  width: 100%;
  min-width: 800px;
  border-collapse: collapse;
  margin-top: 10px;
  table-layout: auto;
}

table th {
  background: #f8f9fa;
  padding: 12px 15px;
  text-align: left;
  color: #34495e;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 10;
}

table td {
  padding: 12px 15px;
  border-top: 1px solid #ecf0f1;
  font-size: 14px;
  word-wrap: break-word;
  max-width: 300px;
}

table tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* Colonnes spécifiques pour meilleure gestion de l'espace */
table td:first-child,
table th:first-child {
  min-width: 150px;
}

table td:last-child,
table th:last-child {
  min-width: 100px;
  text-align: center;
}

/* Responsive pour les tableaux sur mobile */
@media (max-width: 768px) {
  .table-responsive {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }
  
  table {
    min-width: 700px;
    font-size: 13px;
  }
  
  table th,
  table td {
    padding: 10px 12px;
    font-size: 13px;
  }
  
  table td {
    max-width: 250px;
  }
  
  /* DataTables sur mobile - layout vertical */
  .dataTables_wrapper .dataTables_length,
  .dataTables_wrapper .dataTables_filter {
    display: block;
    text-align: left;
    margin-bottom: 15px;
    width: 100%;
  }
  
  .dataTables_wrapper .dataTables_filter input {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-top: 5px;
  }
  
  .dataTables_wrapper .dataTables_length select {
    width: auto;
    margin: 0 5px;
  }
  
  /* Pagination sur mobile */
  .dataTables_wrapper .dataTables_paginate {
    text-align: center;
    margin-top: 15px;
  }
  
  .dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 5px 10px;
    margin: 2px;
    font-size: 12px;
  }
}

.table-filter {
  margin-bottom: 15px;
  display: flex;
  margin: auto;
  margin-bottom: 30px;
  margin-top: 20px;
}

.table-filter input {
  width: 250px;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  background-color: #fff;
  background-image: url('https://cdn-icons-png.flaticon.com/512/622/622669.png');
  background-size: 18px;
  background-repeat: no-repeat;
  background-position: 10px center;
  padding-left: 40px;
  transition: all 0.3s ease;
}

.table-filter input:focus {
  outline: none;
  border-color: #007bff;
  background-color: #f9f9f9;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* Indicateur de scroll pour les tableaux */
.table-responsive::after {
  content: '👉 Faites défiler →';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(to left, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0) 100%);
  padding: 10px 20px 10px 40px;
  font-size: 12px;
  color: #6b7280;
  font-weight: 600;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 5;
}

.table-responsive.has-scroll::after {
  opacity: 1;
}

@media (min-width: 769px) {
  .table-responsive::after {
    display: none;
  }
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 30px 0;
  color: #7f8c8d;
}

.empty-state i {
  font-size: 40px;
  margin-bottom: 15px;
  opacity: 0.5;
}

/* Back button */
.back-btn {
  display: inline-flex;
  align-items: center;
  background: #ecf0f1;
  color: #34495e;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s;
  margin-top: 20px;
}

.back-btn:hover {
  background: #bdc3c7;
}

.back-btn i {
  margin-right: 8px;
}

/* Price tag and dates */
.price-tag {
  font-weight: 600;
  color: #2c3e50;
}

.upcoming-date {
  background: #e8f5e9;
  color: #388e3c;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.past-date {
  font-size: 14px;
}

/* Garages section */
.garages-container {
  margin-bottom: 40px;
}

.garages-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.add-garage-btn {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  transition: var(--transition);
}

.add-garage-btn i {
  margin-right: 5px;
}

.add-garage-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

.garages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 25px;
}

.garage-card {
  background-color: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 25px;
  position: relative;
  transition: var(--transition);
  border-top: 4px solid var(--primary);
}

.garage-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.garage-card h3 {
  color: var(--dark);
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 22px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.garage-card p {
  margin: 10px 0;
  color: #555;
  font-size: 15px;
}

.garage-card strong {
  color: var(--dark);
}

.garage-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.edit-btn, .delete-btn {
  padding: 8px 15px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  border: none;
  white-space: nowrap;
  margin: 2px;
}

.edit-btn {
  background-color: #f39c12;
  color: white;
}

.edit-btn:hover {
  background-color: #e67e22;
}

.delete-btn {
  background-color: var(--danger);
  color: white;
}

.delete-btn:hover {
  background-color: #c0392b;
}

.edit-btn i, .delete-btn i {
  margin-right: 5px;
}

/* Colonnes d'actions dans les tableaux */
table td:has(.edit-btn),
table td:has(.delete-btn) {
  white-space: nowrap;
  min-width: 120px;
}

@media (max-width: 768px) {
  .edit-btn, .delete-btn {
    padding: 6px 10px;
    font-size: 12px;
  }
  
  .edit-btn i, .delete-btn i {
    margin-right: 3px;
    font-size: 12px;
  }
}

/* Reviews section */
.avis-form {
  margin-top: 20px;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: var(--radius);
}

.avis-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: var(--dark);
}

.avis-form select,
.avis-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-family: inherit;
}

.avis-form textarea {
  resize: vertical;
  min-height: 80px;
}

.btn-ajouter-avis {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
}

.btn-ajouter-avis:hover {
  background-color: var(--primary-dark);
}

.avis-list {
  margin-top: 20px;
  border-top: 1px solid #eee;
  padding-top: 15px;
}

.avis-list h4 {
  margin-bottom: 15px;
  color: var(--dark);
}

.avis-item {
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: var(--radius);
  margin-bottom: 10px;
}

.avis-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.avis-note {
  display: inline-block;
}

.avis-date {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 5px;
}

.avis-commentaire {
  font-size: 0.95em;
  color: #333;
}

.delete-avis-btn {
  background-color: #e74c3c;
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9em;
  margin-top: 8px;
}

.delete-avis-btn:hover {
  background-color: #c0392b;
}

/* No garage */
.no-garage {
  text-align: center;
  padding: 50px;
  background-color: #f8f9fa;
  border-radius: var(--radius);
  color: #777;
}

.no-garage i {
  font-size: 60px;
  margin-bottom: 20px;
  color: #aaa;
}

/* Toast notifications */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #4CAF50;
  color: white;
  padding: 15px 25px;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: none;
  z-index: 1001;
  animation: slideIn 0.3s ease;
}

/* Maintenance section */
.entretiens-container {
  margin-bottom: 40px;
}

.entretiens-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.dataTables_wrapper {
  margin-top: 20px;
}

.table-entretiens {
  width: 100% !important;
  border-collapse: collapse;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.table-entretiens th {
  background-color: #f8f9fa;
  font-weight: 600;
  text-align: left;
  padding: 12px;
  color: var(--dark);
}

.table-entretiens td {
  padding: 12px;
  border-bottom: 1px solid #eee;
}

.table-entretiens tr:hover {
  background-color: #f8f9fa;
}

.upcoming-entretien {
  background-color: #e8f5e9;
  color: #388e3c;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.dataTables_filter input {
  border: 1px solid #ddd;
  padding: 8px;
  border-radius: var(--radius);
  margin-left: 10px;
}

.dataTables_length select {
  border: 1px solid #ddd;
  padding: 5px;
  border-radius: var(--radius);
  margin: 0 10px;
}

/* Expenses section */
.frais-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--primary-light);
}

.frais-header h2 {
  color: var(--primary);
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.frais-header h2 i {
  font-size: 1.8rem;
}

.add-frais-btn {
  background: linear-gradient(145deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 30px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(58, 123, 213, 0.3);
}

.add-frais-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(58, 123, 213, 0.4);
}

.frais-container .summary-card {
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  border-top: 5px solid var(--primary);
}

.frais-container .summary-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.frais-container .summary-card i {
  background: rgba(58, 123, 213, 0.1);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
}

.frais-container .dataTables_wrapper {
  background: white;
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.frais-container .table-frais thead th {
  background: linear-gradient(145deg, #f8fafc, #f0f4f8);
  color: var(--primary);
  border-bottom: 2px solid var(--primary-light);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.frais-container .dataTables_filter input {
  border: 1px solid #ddd;
  padding: 10px 15px;
  border-radius: 25px;
  margin-left: 10px;
  width: 250px;
  transition: var(--transition);
}

.frais-container .dataTables_filter input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(58, 123, 213, 0.1);
  outline: none;
}

.frais-container .dataTables_length select {
  border: 1px solid #ddd;
  padding: 8px 30px 8px 12px;
  border-radius: 20px;
  margin: 0 10px;
  background: white;
  cursor: pointer;
}

.frais-container .dataTables_paginate .paginate_button {
  padding: 8px 15px !important;
  margin: 0 3px;
  border-radius: 6px;
  border: 1px solid var(--primary) !important;
  color: var(--primary) !important;
  transition: var(--transition);
}

.frais-container .dataTables_paginate .paginate_button:hover,
.frais-container .dataTables_paginate .paginate_button.current {
  background: var(--primary) !important;
  color: white !important;
}

/* Type badges */
.type-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.type-carburant { background: #e3f2fd; color: #1976d2; }
.type-peage { background: #fce4ec; color: #c2185b; }
.type-stationnement { background: #f3e5f5; color: #7b1fa2; }
.type-entretien { background: #e8f5e9; color: #388e3c; }
.type-reparation { background: #fff3e0; color: #f57c00; }
.type-vidange { background: #e0f2f1; color: #00796b; }
.type-pneus { background: #f1f8e9; color: #558b2f; }
.type-assurance { background: #e8eaf6; color: #3949ab; }
.type-controle { background: #fff8e1; color: #ffa000; }
.type-lavage { background: #e1f5fe; color: #0288d1; }
.type-accessoires { background: #fafafa; color: #757575; }
.type-autre { background: #eceff1; color: #546e7a; }

/* Status badges */
.status-badge {
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.85em;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.status-resolved {
  background-color: #d4edda;
  color: #155724;
}

.status-pending {
  background-color: #fff3cd;
  color: #856404;
}

/* Action buttons */
.resolve-btn {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  margin-right: 5px;
  transition: background-color 0.3s;
}

.resolve-btn:hover {
  background-color: #218838;
}

.view-btn {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  margin-right: 5px;
  transition: background-color 0.3s;
}

.view-btn:hover {
  background-color: #2980b9;
}

.photo-btn, .files-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9em;
  transition: background-color 0.3s;
  border: none;
  white-space: nowrap;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.files-btn {
  background-color: #6c757d;
  color: white;
}

.files-btn:hover {
  background-color: #5a6268;
}

.photo-btn {
  background-color: #3498db;
  color: white;
}

.photo-btn:hover {
  background-color: #2980b9;
}

@media (max-width: 768px) {
  .photo-btn, .files-btn {
    font-size: 0.8em;
    padding: 4px 8px;
    max-width: 120px;
  }
}

.email-btn {
  background-color: #17a2b8;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  margin-right: 5px;
  transition: background-color 0.3s;
}

.email-btn:hover {
  background-color: #138496;
}

.no-files, .no-photo {
  color: #999;
  font-size: 0.9em;
}

/* Forms and inputs */
label {
  display: block;
  font-weight: 600;
  color: #333;
  font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
textarea,
select {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.8rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  background-color: #fff;
  font-family: inherit;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #0056d2;
  box-shadow: 0 0 0 3px rgba(0, 86, 210, 0.1);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

input::placeholder,
textarea::placeholder {
  color: #9ca3af;
}

input.error,
textarea.error,
select.error {
  border-color: #e74c3c;
}

input:disabled,
textarea:disabled,
select:disabled {
  background-color: #f3f4f6;
  cursor: not-allowed;
}

input[type="file"] {
  padding: 0.5rem;
  border: 1px dashed #d1d5db;
  background-color: #f9fafb;
}

input[type="checkbox"],
input[type="radio"] {
  width: auto;
  margin-right: 0.5rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Fuel stations page */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.form-group i {
  margin-right: 8px;
  color: var(--primary);
}

.search-button {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  margin-top: 1rem;
}

.commune-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.commune-btn {
  padding: 10px 20px;
  text-align: center;
}

.stations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.station-services {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.service-badge {
  background: var(--bg);
  color: var(--primary);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  border: 1px solid var(--primary-light);
}

.price-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: var(--shadow-sm);
}

/* Assurer que Select2 prend toute la largeur disponible */
.select2-container {
  width: 100% !important; /* Force la largeur à 100% */
  max-width: 100%;
}

/* Style du conteneur principal */
.select2-container--default .select2-selection--single {
  border: 1px solid #e0e0e0;
  height: 60px; /* Augmentez cette valeur pour plus de hauteur */
  padding: 15px 20px; /* Ajustez le padding pour centrer le contenu verticalement */
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  width: 100%; /* Assure que la largeur est à 100% */
}

/* Ajustement pour les contrôles dans le modal */
#carModal .form-group,
#carModal select,
#carModal .select2-container {
  width: 100% !important;
  max-width: 100% !important;
}

/* S'assurer que le texte des options utilise toute la largeur */
.select2-container--default .select2-selection--single .select2-selection__rendered {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 20px; /* Espace pour la flèche */
}

/* Styles améliorés pour Select2 */
.select2-container--default .select2-selection--single {
  border: 1px solid #e0e0e0;
  height: 52px; /* Hauteur réduite */
  padding: 10px 15px; /* Padding ajusté */
  border-radius: 10px; /* Coins plus arrondis */
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.select2-container--default .select2-selection--single:hover {
  border-color: #bdbdbd;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 86, 210, 0.15);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #333;
  font-size: 15px; /* Texte légèrement plus grand */
  line-height: 32px; /* Centrer verticalement */
  padding-left: 5px;
  font-weight: 500; /* Légèrement plus gras */
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 50px;
  right: 10px;
  width: 30px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: #0056d2 transparent transparent transparent; /* Couleur de la flèche */
  border-width: 6px 6px 0 6px;
  margin-left: -6px;
  margin-top: -3px;
  transition: all 0.2s ease;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
  border-color: transparent transparent #0056d2 transparent;
  border-width: 0 6px 6px 6px;
}

/* Styles améliorés pour la dropdown */
.select2-dropdown {
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  overflow: hidden;
  margin-top: 3px;
  animation: select2DropdownFadeIn 0.2s ease-out;
}

@keyframes select2DropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Styles pour la barre de recherche */
.select2-container--default .select2-search--dropdown {
  padding: 12px;
  background: #f9fafc;
  border-bottom: 1px solid #f0f0f0;
}

.select2-search--dropdown .select2-search__field {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 12px 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  font-size: 15px;
  transition: all 0.2s;
  background-color: white;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23aaa" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg>');
  background-repeat: no-repeat;
  background-position: 10px center;
  padding-left: 35px;
}

.select2-search--dropdown .select2-search__field:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 86, 210, 0.12);
  outline: none;
}

/* Options dans la liste déroulante */
.select2-container--default .select2-results > .select2-results__options {
  max-height: 350px;
  scrollbar-width: thin;
  scrollbar-color: #d1d5db #f3f4f6;
  padding: 5px 0;
}

.select2-container--default .select2-results__option {
  padding: 12px 16px;
  font-size: 15px;
  transition: all 0.15s;
  border-bottom: 1px solid #f5f5f5;
  color: #444;
}

.select2-container--default .select2-results__option:last-child {
  border-bottom: none;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: rgba(0, 86, 210, 0.08);
  color: #0056d2;
}

.select2-container--default .select2-results__option[aria-selected=true] {
  background-color: rgba(0, 86, 210, 0.12);
  color: #0056d2;
  font-weight: 600;
}

/* Style pour les options avec icônes */
.select2-results__option {
  position: relative;
  padding-left: 40px !important;
  display: flex;
  align-items: center;
}

.select2-results__option::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #d1d5db;
  transition: all 0.15s ease;
}

.select2-results__option--highlighted[aria-selected]::before,
.select2-results__option[aria-selected=true]::before {
  background-color: #0056d2;
  width: 10px;
  height: 10px;
  box-shadow: 0 0 0 2px rgba(0, 86, 210, 0.2);
}

/* Placeholder */
.select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #9e9e9e;
  font-style: italic;
}

/* Modifier l'apparence lorsqu'aucun résultat n'est trouvé */
.select2-results__message {
  padding: 15px;
  font-size: 14px;
  font-style: italic;
  color: #888;
  text-align: center;
}

/* Style spécifique pour le champ marque avec icône */
.select2-container--default .select2-selection--single[aria-labelledby="select2-marque_id-container"] .select2-selection__rendered {
  padding-left: 30px;
  position: relative;
}

.select2-container--default .select2-selection--single[aria-labelledby="select2-marque_id-container"] .select2-selection__rendered::before {
  content: '🚗';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
}

/* Override de la hauteur par défaut de Select2 */
.select2-container .select2-selection--single {
  height: auto !important; /* Remplace la hauteur fixe de 28px */
  min-height: 45px !important; /* Définit une hauteur minimale */
  padding: 8px 12px !important; /* Ajuste le padding pour l'espace intérieur */
}

/* Ajustement de la position de la flèche */
.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100% !important; /* La flèche s'étend sur toute la hauteur */
  top: 0 !important; /* Alignement en haut */
}

/* Ajustement du texte à l'intérieur */
.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 30px !important; /* Alignement vertical du texte */
  padding-top: 4px !important;
  padding-bottom: 4px !important;
}

/* Réglage de l'icône 🚗 */
.select2-container--default .select2-selection--single .select2-selection__rendered:before {
  top: 50% !important;
  transform: translateY(-50%) !important;
}
/* Footer */
footer {
  background: #1e1e2f;
  color: white;
  padding: 2.5rem 1rem;
  font-size: 0.95rem;
  margin-top: auto;
  width: 100%;
  position: relative;
  bottom: 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-left p {
  margin: 0;
}

.footer-right a {
  color: #ddd;
  text-decoration: none;
  margin-left: 1.2rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-right a:first-child {
  margin-left: 0;
}

.footer-right a:hover {
  color: var(--accent);
}

footer .footer-right a:last-child,
footer .footer-right a:nth-last-child(2) {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* App banner */
.app-banner {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: #0056d2;
  color: white;
  text-align: center;
  padding: 1rem;
  font-size: 0.95rem;
  z-index: 1000;
}

.app-banner a {
  color: #ffeb3b;
  font-weight: 600;
  margin-left: 0.5rem;
}

/* Mobile button */
.cta-mobile {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--primary);
  color: white;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  display: none;
  z-index: 999;
  text-decoration: none;
  margin-bottom: 50px;
}

/* Utility classes */
.svg-divider {
  display: block;
  margin-top: -4rem;
  height: 80px;
}

[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

h2 i {
  margin-right: 0.5rem;
  color: var(--primary);
}

/* Animations */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {opacity: 0;} 
  to {opacity: 1;}
}

@keyframes scaleIn {
  from {transform: scale(0.9);} 
  to {transform: scale(1);}
}

@keyframes fadeInMessage {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes subtle-pulse {
  0% {
    box-shadow: 0 6px 20px rgba(0, 86, 210, 0.3);
  }
  50% {
    box-shadow: 0 6px 30px rgba(0, 86, 210, 0.5);
  }
  100% {
    box-shadow: 0 6px 20px rgba(0, 86, 210, 0.3);
  }
}

/* Media queries for Blog Page */
@media (max-width: 1024px) {
  .blog h2 {
    font-size: 2.5rem;
  }

  .blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .blog {
    padding: 4rem 1rem;
  }

  .blog h2 {
    font-size: 2rem;
    padding-bottom: 1rem;
  }

  .blog h2::after {
    width: 80px;
    height: 3px;
  }

  .blog-filters {
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
  }

  .blog-filters input[type="text"],
  .blog-filters select {
    width: 100%;
  }

  .blog-filters button {
    width: 100%;
    padding: 1rem 2rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .blog-card {
    min-height: 450px;
  }

  .blog-card img {
    height: 200px;
  }

  .blog-card h3 {
    font-size: 1.3rem;
    margin: 1.2rem 1.5rem 0.8rem;
  }

  .blog-card p {
    font-size: 0.95rem;
    margin: 0 1.5rem 1.2rem;
  }

  .read-more {
    margin: 0 1.5rem 1.5rem;
    padding: 0.9rem 1.5rem;
    font-size: 0.95rem;
  }

  .date-badge {
    top: 15px;
    left: 15px;
    font-size: 0.75rem;
    padding: 0.5rem 0.8rem;
  }

  .pagination {
    padding: 1.5rem 1rem;
    gap: 0.5rem;
  }

  .pagination a {
    padding: 0.7rem 1rem;
    min-width: 40px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .blog {
    padding: 3rem 0.5rem;
  }

  .blog h2 {
    font-size: 1.8rem;
  }

  .blog-filters {
    padding: 1rem;
  }

  .blog-card {
    min-height: 420px;
  }

  .blog-card:hover {
    transform: translateY(-8px) scale(1.01);
  }

  .blog-card img {
    height: 180px;
  }

  .blog-card h3 {
    font-size: 1.2rem;
  }

  .date-badge {
    font-size: 0.7rem;
    padding: 0.4rem 0.7rem;
  }

  .pagination {
    padding: 1rem 0.5rem;
  }

  .pagination a {
    padding: 0.6rem 0.8rem;
    min-width: 35px;
    font-size: 0.85rem;
  }
}

/* Media queries */
@media (min-width: 769px) {
  .dropdown:hover .dropdown-menu {
    display: block;
  }
}

@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .related-articles {
    position: static;
    margin-top: 3rem;
  }

  .article-header h1 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .article-page {
    padding: 3rem 1rem;
  }

  .article-header h1 {
    font-size: 1.8rem;
    line-height: 1.4;
  }

  .article-date {
    font-size: 0.9rem;
    padding: 0.5rem 1.2rem;
  }

  .article-content {
    font-size: 1rem;
    text-align: left;
  }

  .article-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
  }

  .article-content h3 {
    font-size: 1.2rem;
  }

  .related-articles {
    padding: 1.5rem;
  }

  .related-articles h3 {
    font-size: 1.2rem;
  }

  .related-thumb {
    height: 120px;
  }

  .related-date {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
  }

  .related-meta h4 {
    font-size: 0.95rem;
  }

  .back-to-blog .btn-main {
    font-size: 1rem;
    padding: 0.9rem 2rem;
  }
}

@media (max-width: 768px) {
  .hero-layout,
  .why-layout {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .welcome-dashboard-wrapper {
    padding: 1.5rem;
  }
  
  .dashboard-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }
  
  .welcome-dashboard {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }
  
  .profile-pic {
    width: 120px;
    height: 120px;
  }
  
  .welcome-text h1 {
    font-size: 2rem;
  }
  
  .dashboard-card {
    width: 100%;
  }

  .hero-buttons {
    justify-content: center;
  }

  .burger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: white;
    flex-direction: column;
    gap: 0;
    padding: 80px 20px 20px;
    transition: left 0.3s ease;
    overflow-y: auto;
    z-index: 1001;
  }

  .nav-links.show {
    left: 0;
  }

  .nav-links > a,
  .dropdown-toggle {
    padding: 1rem;
    width: 100%;
    text-align: left;
    border-bottom: 1px solid #eee;
  }

  .dropdown {
    width: 100%;
  }

  .dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .dropdown-toggle i:last-child {
    margin-left: auto;
    transition: transform 0.3s ease;
  }

  .dropdown.active .dropdown-toggle i:last-child {
    transform: rotate(180deg);
  }

  .dropdown-menu {
    position: static;
    display: none;
    width: 100%;
    box-shadow: none;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    border-radius: 0;
  }

  .dropdown.active .dropdown-menu {
    display: block;
  }

  .dropdown-menu a {
    padding: 0.8rem 1.5rem 0.8rem 2.5rem;
    border-bottom: 1px solid #eee;
  }

  .dropdown-menu a:last-child {
    border-bottom: none;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .btn-main,
  .btn-nav {
    width: 100%;
    display: inline-block;
    text-align: center;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-right {
    margin-top: 1rem;
  }

  .footer-right a {
    display: inline-block;
    margin: 0.4rem 0.8rem;
  }

  .related-articles {
    position: static;
  }

  .related-item {
    margin-bottom: 1.2rem;
  }

  .related-thumb {
    height: 120px;
  }

  .garages-grid {
    grid-template-columns: 1fr;
  }
  
  .garage-actions {
    flex-direction: column;
    gap: 10px;
  }
  
  .edit-btn, .delete-btn {
    width: 100%;
    justify-content: center;
  }

  .vehicles-grid {
    grid-template-columns: 1fr;
  }
  
  .vehicle-details {
    flex-direction: column;
    gap: 0.5rem;
  }

  .vehicle-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .vehicle-image-container {
    width: 120px;
    height: 120px;
    margin-right: 0;
    margin-bottom: 20px;
  }
  
  .summary-cards {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .stations-grid {
    grid-template-columns: 1fr;
  }
  
  .commune-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .select2-container--default .select2-selection--single {
    height: 52px;
    padding: 12px 15px;
  }
  
  .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 50px;
  }
  
  .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 30px;
  }
  
  .select2-search--dropdown .select2-search__field {
    padding: 12px 15px;
  }
  
  .select2-container--default .select2-results__option {
    padding: 12px 16px;
    padding-left: 36px !important;
  }

  .blog-card[data-animate] {
    opacity: 1 !important;
    transform: none !important;
  }

  .cta-mobile {
    display: block;
  }
}

@media (max-width: 640px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="date"],
  textarea,
  select {
    font-size: 16px; /* Prevents zoom on mobile */
  }
}

.set-main-btn {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  background-color: var(--primary-light);
  color: var(--primary);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
}

.set-main-btn:hover {
  background-color: var(--primary);
  color: white;
}

.set-main-btn i {
  margin-right: 5px;
}

#photosTable td {
  vertical-align: middle;
}

.preview-container {
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  margin-top: 15px;
}

.preview-container p {
  margin-bottom: 10px;
  font-weight: 600;
}

/* Amélioration du style pour le calendrier */
.fc .fc-toolbar-title {
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 700;
}

.fc .fc-today-button {
  background-color: var(--primary-dark) !important;
}

.fc .fc-button {
  transition: all 0.2s ease;
}

.fc .fc-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.fc .fc-daygrid-day.fc-day-today {
  background-color: rgba(0, 86, 210, 0.08);
}

.fc .fc-daygrid-day-number {
  font-weight: 600;
  color: #444;
}

.fc .fc-event {
  cursor: pointer;
  border-radius: 6px;
  padding: 5px 8px;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fc .fc-event:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  z-index: 5;
}

.fc .fc-list-event-dot {
  border-radius: 50%;
  border-width: 5px;
}

.fc-theme-standard .fc-list-day-cushion {
  background-color: #f8f9fc;
}

/* Style pour le filtre de véhicule */
#filter-vehicle {
  padding: 0.2rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid #e2e8f0;
  background-color: white;
  transition: var(--transition);
  font-weight: 500;
  font-family: var(--font-main);
  width: 400px;
}

#filter-vehicle:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0, 86, 210, 0.1);
  outline: none;
}

/* Style amélioré pour le filtre de véhicules */
.vehicle-filter-container {
  display: flex;
  align-items: center;
  background: transparent;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(0, 86, 210, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
  overflow: hidden;
  max-width: 100%;
  margin-left: auto;
  backdrop-filter: blur(4px);
}

.vehicle-filter-container:hover {
  box-shadow: 0 4px 12px rgba(0, 86, 210, 0.08);
  transform: translateY(-1px);
  border-color: rgba(0, 86, 210, 0.4);
}

.vehicle-filter-container label {
  background-color: rgba(0, 86, 210, 0.08);
  padding: 10px 16px;
  margin: 0;
  display: flex;
  align-items: center;
  color: var(--primary);
  font-weight: 600;
  border-right: 1px solid rgba(0, 86, 210, 0.15);
  height: 100%;
}

.vehicle-filter-container label i {
  margin-right: 8px;
  font-size: 1rem;
}

.vehicle-filter-container select {
  border: none;
  background: transparent;
  padding: 0 6px;
  height: 56px;
  font-family: var(--font-main);
  font-weight: 500;
  color: #333;
  flex-grow: 1;
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230056d2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
  background-color: transparent;
}

.vehicle-filter-container select:focus {
  color: var(--primary);
}

.vehicle-filter-container select option {
  padding: 10px;
  font-weight: 500;
  background-color: white;
}

/* Animation lors du changement */
.vehicle-filter-container select:focus + .select-arrow {
  transform: rotate(180deg);
}

/* Pour les appareils mobiles */
@media (max-width: 768px) {
  .vehicle-filter-container {
    max-width: 100%;
    margin: 12px 0 0 0;
  }
  
  .calendar-filters {
    flex-direction: column;
    align-items: stretch;
  }
}

.expenses-breakdown {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  margin: 2rem 0;
}

.expenses-breakdown h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.expenses-chart-container {
  max-width: 500px;
  margin: 0 auto 1.5rem;
  padding: 0.5rem;
}

.no-expenses {
  text-align: center;
  padding: 2rem;
  color: var(--gray);
}

.no-expenses i {
  font-size: 3rem;
  color: #e2e8f0;
  margin-bottom: 1rem;
}


.legend-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}

.legend-info {
  flex: 1;
}

.legend-name {
  display: flex;
  justify-content: space-between;
  font-weight: 500;
  color: var(--dark);
}

.legend-percent {
  font-weight: 600;
  color: var(--primary);
}

.legend-amount {
  font-size: 0.85rem;
  color: var(--gray);
}

@media (max-width: 640px) {
  .legend-items {
    grid-template-columns: 1fr;
  }
}

/* Nouvelles classes pour améliorer le design */
.gradient-bg {
  background: linear-gradient(135deg, #f0f4ff, #e8f0fd);
}

.gradient-bg-alt {
  background: linear-gradient(135deg, #f2f6fc, #e6ebf5);
}

.gradient-text {
  background: linear-gradient(45deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: fadeInUp 0.6s ease-out;
}

.glass-effect {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.elevated {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.elevated:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.shadow-effect {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.chart-shadow {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border-radius: var(--radius);
  padding: 10px;
}

.section-title {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title i {
  font-size: 1.6rem;
  color: var(--primary);
}

.section-divider {
  display: flex;
  align-items: center;
  margin: 30px 0;
  width: 100%;
}

.divider-line {
  flex-grow: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(0, 86, 210, 0.2), transparent);
}

.divider-icon {
  margin: 0 15px;
  background: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.highlight-profile {
  position: relative;
  border: 5px solid #fff;
  box-shadow: 0 10px 30px rgba(58, 123, 213, 0.2);
  border-radius: 50%;
}

.profile-status {
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: #2ecc71;
  border: 2px solid white;
}

.card-icon {
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 10px;
}

.subtitle-text {
  color: var(--gray);
  font-size: 1.1rem;
  opacity: 0.8;
  margin-top: -0.5rem;
}

.value-highlight {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  animation: countUp 2s ease-out;
}

.wave-emoji {
  display: inline-block;
  animation: wave 1.8s infinite;
  transform-origin: 70% 70%;
}

@keyframes wave {
  0% { transform: rotate(0deg); }
  10% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  30% { transform: rotate(14deg); }
  40% { transform: rotate(-4deg); }
  50% { transform: rotate(10deg); }
  60% { transform: rotate(0deg); }
  100% { transform: rotate(0deg); }
}

.modern-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  background-color: #f8f9fc;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  padding: 15px 20px;
  justify-content: center;
  align-items: center;
}

.filter-item {
  display: flex;
  align-items: center;
  margin-right: 10px;
  margin-top: 12px;
 
}

.filter-item:hover {
  transform: translateY(-2px);
  border-color: var(--primary-light);
}

.filter-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

.color-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.calendar-container {
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.04);
  padding: 20px;
  margin-top: 20px;
}

.calendar-styled {
  margin-top: 15px;
  box-shadow: none !important;
  padding: 0 !important;
  background: transparent !important;
}

.vehicle-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(45deg, var(--primary), var(--primary-light));
  color: white;
  padding: 5px 10px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.vehicle-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--gray);
}

.detail-item i {
  color: var(--primary-light);
  width: 20px;
  text-align: center;
}

.btn-primary-soft {
  background-color: rgba(0, 86, 210, 0.1);
  color: var(--primary);
  font-weight: 600;
}

.btn-primary-soft:hover {
  background-color: var(--primary);
  color: white;
}

.btn-icon-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.modern-fab {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  width: 65px;
  height: 65px;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 86, 210, 0.3);
}

.modern-fab:hover {
  border-radius: 30px;
  transform: scale(1.05) rotate(0deg);
}

.pulse-effect {
  animation: subtle-pulse 2s infinite;
}

.pulse-button {
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 86, 210, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 86, 210, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 86, 210, 0);
  }
}

.dashboard-analytics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 25px;
}

.analytics-card {
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.analytics-title {
  font-size: 1.2rem;
  color: var(--gray);
  margin-bottom: 15px;
  text-align: center;
}


.highlight-on-hover {
  transition: all 0.2s ease;
  padding: 8px;
  border-radius: var(--radius-sm);
}

.highlight-on-hover:hover {
  background: rgba(0, 86, 210, 0.05);
  transform: translateX(5px);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.animated {
  animation-duration: 0.8s;
  animation-fill-mode: both;
}

.fadeIn {
  animation-name: fadeIn;
}

.fadeInDown {
  animation-name: fadeInDown;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translate3d(0, -20px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* Amélioration pour le responsive */
@media (max-width: 768px) {
  .dashboard-analytics {
    grid-template-columns: 1fr;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .modern-filters {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-item {
    width: 100%;
  }
  
  .modern-fab {
    width: 55px;
    height: 55px;
  }
}

/* Layout deux colonnes pour les graphiques */
.dashboard-analytics.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Deux colonnes de largeur égale */
  gap: 25px;
  margin-top: 25px;
}

/* Ajustement de la hauteur des graphiques pour l'alignement */
.analytics-card, .expenses-breakdown {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.expenses-chart-container {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Version plus compacte de la légende */
.legend-items.compact {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
  max-height: 10px;
  overflow-y: auto;
  padding-right: 5px;
}

.legend-items.compact::-webkit-scrollbar {
  width: 5px;
}

.legend-items.compact::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 5px;
}

.legend-items.compact::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 5px;
}

.legend-items.compact .legend-item {
  padding: 5px;
  margin-bottom: 0;
}

/* Responsive pour mobile */
@media (max-width: 992px) {
  .dashboard-analytics.two-columns {
    grid-template-columns: 1fr; /* Une seule colonne sur les petits écrans */
    gap: 20px;
  }
  
  .analytics-card, .expenses-breakdown {
    height: auto;
  }
}

/* Ajustements pour les titres des sections d'analyse */
.analytics-title {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 15px;
  font-weight: 600;
  text-align: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 10px;
}

/* Mise en page à deux colonnes avec alignement strict */
.dashboard-analytics.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-top: 25px;
}

/* Uniformisation des cartes d'analyse */
.analytics-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

/* En-tête des cartes avec titre */
.card-header {
  padding: 15px 20px;
  background: linear-gradient(to right, #f8f9fb, #f0f4f8);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  text-align: center;
}

/* Style uniforme pour les titres de graphique */
.chart-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.chart-title i {
  font-size: 1rem;
  opacity: 0.8;
}

/* Conteneur de graphique avec hauteur fixe */
.chart-container {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  position: relative;
}

/* Taille des graphiques */
.chart-container canvas {
  width: 100%;
  height: auto;
  max-height: 300px; /* Hauteur maximale du graphique lui-même */
}


/* Légende compacte */
.legend-items.compact {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
  max-height: 120px;
  overflow-y: auto;
  padding-right: 5px;
}

.legend-items.compact .legend-item {
  padding: 4px 8px;
  margin-bottom: 0;
  border-radius: 4px;
}

/* Responsive */
@media (max-width: 992px) {
  .dashboard-analytics.two-columns {
    grid-template-columns: 1fr;
  }
  
  .chart-container {
    height: auto;
    min-height: 350px;
  }
}

/* Correction pour les jours du calendrier cachés par la barre de défilement */


.fc-day-number, .fc-daygrid-day-number {
  padding-right: 10px !important;
  position: relative;
  z-index: 2;
}



/* S'assurer que le calendrier a suffisamment d'espace */
#calendar {
  margin-top: 1.5rem;
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius);
  padding: 1rem;
  background: white;
  overflow: visible !important; /* Assurez-vous que le contenu ne soit pas coupé */
}

/* Ajuster l'apparence de la barre de défilement */
.fc-scroller::-webkit-scrollbar {
  width: 8px;
}

.fc-scroller::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.fc-scroller::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 4px;
}

/* Assurer la visibilité des événements à la fin du mois */
.fc-daygrid-day:last-child, 
.fc-col-header-cell:last-child {
  padding-right: 10px !important;
}


/* Augmenter légèrement la largeur du calendrier */
.calendar-container {
  width: 100%;
  overflow-x: hidden;
}

.calendar-styled {
  width: 100%;
  margin-right: 0;
}


@media (max-width: 768px) {
  #calendar {
    padding: 0.5rem;
  }
  
  .fc .fc-toolbar {
    flex-direction: column;
    gap: 10px;
  }
  
  .fc .fc-toolbar-title {
    font-size: 1.2rem;
  }
}

/* Design amélioré pour les cartes de tableau de bord */
.dashboard-boxes.new-design {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  margin: 25px 0;
}

.premium-card {
  background: white;
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  border: none;
  flex: 1;
  min-width: 250px;
  display: flex;
  flex-direction: column;
}

.premium-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--primary), var(--primary-light));
  border-radius: 4px;
}

.premium-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.card-icon-container {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
}

.card-icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(0, 86, 210, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 24px;
  transition: all 0.3s ease;
}

.card-icon-circle.secondary {
  background: rgba(46, 204, 113, 0.1);
  color: #2ecc71;
}

.premium-card:hover .card-icon-circle {
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(0, 86, 210, 0.15);
}

.premium-card:hover .card-icon-circle.secondary {
  box-shadow: 0 5px 15px rgba(46, 204, 113, 0.15);
}

.card-label {
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.card-value {
  text-align: center;
  margin: 0;
  font-weight: 800;
  color: var(--primary);
  font-size: 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.currency-value {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(45deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.2;
}

.card-big-number {
  font-size: 3.2rem;
  font-weight: 800;
  color: #2ecc71;
  line-height: 1;
  display: block;
}

.card-value-label {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gray);
  display: block;
}

.card-progress {
  margin-top: 15px;
  height: 6px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(to right, var(--primary), var(--primary-light));
  border-radius: 10px;
}

.card-footer {
  margin-top: 15px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--gray);
}

.trend {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.85rem;
}

.trend.positive {
  background-color: rgba(46, 204, 113, 0.1);
  color: #2ecc71;
}

.trend.negative {
  background-color: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
}

.card-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(0, 86, 210, 0.1);
  transition: all 0.3s ease;
}

.card-link:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

/* Animations pour les cartes */
@keyframes pulse-light {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 86, 210, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 86, 210, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 86, 210, 0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .dashboard-boxes.new-design {
    flex-direction: column;
  }
  
  .premium-card {
    width: 100%;
  }
}

/* Design amélioré pour les cartes de tableau de bord horizontales */
.dashboard-boxes.new-design.horizontal {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  margin: 25px 0;
}

.premium-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  border: none;
  flex: 1;
  min-width: 300px;
}

.premium-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary), var(--primary-light));
  border-radius: 4px;
}

.premium-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Style horizontal spécifique */
.horizontal-card {
  height: 120px; /* Hauteur réduite */
  padding: 0;
  display: flex;
  flex-direction: column;
}

.card-content {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0;
}

.card-left {
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  flex-shrink: 0;
}

.card-right {
  flex-grow: 1;
  padding: 15px 20px 15px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-icon-circle {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: rgba(0, 86, 210, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 22px;
  transition: all 0.3s ease;
}

.card-icon-circle.secondary {
  background: rgba(46, 204, 113, 0.1);
  color: #2ecc71;
}

.premium-card:hover .card-icon-circle {
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(0, 86, 210, 0.15);
}

.premium-card:hover .card-icon-circle.secondary {
  box-shadow: 0 5px 15px rgba(46, 204, 113, 0.15);
}

.card-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 5px 0;
  text-align: center;
}

.card-value {
  margin: 0;
  padding: 0;
  line-height: 1;
}

.currency-value {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(45deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.2;
}

.card-value-group {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 5px;
  text-align: center;
}

.card-big-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: #2ecc71;
  line-height: 1;
}

.card-value-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray);
}

.card-progress {
  height: 4px;
  background: rgba(0, 0, 0, 0.05);
  width: 100%;
  margin-top: auto;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(to right, var(--primary), var(--primary-light));
}

.trend-container {
  margin-top: 5px;
}

.trend {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 0.75rem;
}

.trend.positive {
  background-color: rgba(46, 204, 113, 0.1);
  color: #2ecc71;
}

.trend.negative {
  background-color: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
}

.card-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(0, 86, 210, 0.1);
  transition: all 0.3s ease;
  margin-top: 5px;
  align-self: flex-start;
}

.card-link:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
  .dashboard-boxes.new-design.horizontal {
    flex-direction: column;
  }
  
  .premium-card {
    width: 100%;
  }
  
  .horizontal-card {
    height: auto;
  }
  
  .card-content {
    flex-direction: column;
    padding: 15px;
  }
  
  .card-left {
    width: 100%;
    padding: 10px 0 15px 0;
  }
  
  .card-right {
    width: 100%;
    padding: 0;
    text-align: center;
  }
  
  .card-value-group {
    justify-content: center;
  }
  
  .card-link {
    align-self: center;
  }
}


/* Améliorations pour la section finance */
.finance-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.finance-actions {
  display: flex;
  gap: 10px;
}

.btn-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-weight: 600;
  color: var(--gray);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-filter:hover {
  background: #f8f9fa;
  color: var(--primary);
}

.finance-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  background: white;
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 25px;
  animation: slideDown 0.3s ease;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-width: 200px;
}

.filter-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray);
}

.filter-select {
  padding: 10px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-family: var(--font-main);
  background-color: white;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-select:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 86, 210, 0.1);
}

/* Résumé des dépenses */
.finance-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 30px 0;
}

.summary-card {
  flex: 1;
  min-width: 200px;
  background: white;
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.3s ease;
}

.summary-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.summary-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(0, 86, 210, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
}

.summary-info {
  display: flex;
  flex-direction: column;
}

.summary-label {
  font-size: 0.9rem;
  color: var(--gray);
  font-weight: 500;
}

.summary-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
}

/* Onglets pour les sections de dépenses */
.finance-tabs {
  margin-top: 30px;
}

.tab-header {
  display: flex;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 25px;
}

.tab-btn {
  padding: 12px 20px;
  background: transparent;
  border: none;
  font-family: var(--font-main);
  font-weight: 600;
  color: var(--gray);
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  color: var(--primary);
}

.tab-btn.active {
  color: var(--primary);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary);
  border-radius: 3px 3px 0 0;
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-content.active {
  display: block;
}

/* Style des éléments de dépenses récentes */
.recent-expenses {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.expense-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background: white;
  padding: 15px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.expense-item:hover {
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.expense-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0, 86, 210, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--primary);
  flex-shrink: 0;
}

.expense-details {
  flex: 1;
}

.expense-title {
  font-weight: 600;
  color: var(--dark);
}

.expense-date {
  font-size: 0.85rem;
  color: var(--gray);
}

.expense-amount {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.1rem;
}

/* Tableaux de dépenses */
.expenses-table-container {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.expenses-table {
  width: 100%;
  border-collapse: collapse;
}

.expenses-table th {
  background: #f8f9fa;
  padding: 15px;
  text-align: left;
  font-weight: 600;
  color: var(--gray);
  border-bottom: 1px solid #e0e0e0;
}

.expenses-table td {
  padding: 15px;
  border-bottom: 1px solid #f0f0f0;
  color: var(--dark);
}

.expenses-table tr:hover td {
  background: #f8f9fc;
}

.expense-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(0, 86, 210, 0.1);
  color: var(--primary);
}

.expense-type-badge.entretien {
  background: rgba(46, 204, 113, 0.1);
  color: #2ecc71;
}

.expense-type-badge.frais-carburant {
  background: rgba(52, 152, 219, 0.1);
  color: #3498db;
}

.expense-type-badge.frais-peages {
  background: rgba(243, 156, 18, 0.1);
  color: #f39c12;
}

.expense-type-badge.frais-assurance {
  background: rgba(155, 89, 182, 0.1);
  color: #9b59b6;
}

.expense-type-badge.frais-stationnement {
  background: rgba(149, 165, 166, 0.1);
  color: #95a5a6;
}

.expense-type-badge i {
  font-size: 0.9rem;
}

.amount-cell {
  font-weight: 700;
  color: var(--primary);
}

.actions-cell {
  white-space: nowrap;
}

.btn-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: var(--gray);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-icon:hover {
  background: #f0f4f8;
  color: var(--primary);
}

.btn-icon.btn-danger:hover {
  background: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
}

.no-data-cell {
  padding: 30px !important;
  text-align: center;
}

.no-data {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 30px;
}

.no-data i {
  font-size: 2.5rem;
  color: #e0e0e0;
}

.no-data p {
  color: var(--gray);
  font-weight: 500;
}

.view-all {
  text-align: center;
  padding: 15px;
  border-top: 1px solid #f0f0f0;
}

.btn-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.btn-link:hover {
  color: var(--primary-dark);
}

/* Animations */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 992px) {
  .finance-summary {
    flex-direction: column;
  }
  
  .summary-card {
    width: 100%;
  }
  
  .tab-header {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 5px;
  }
  
  .tab-btn {
    padding: 10px 15px;
  }
  
  .expenses-table-container {
    overflow-x: auto;
  }
  
  .expenses-table {
    min-width: 800px;
  }
}

/* Style pour la section documents administratifs */
.vehicle-documents {
  margin-top: 20px;
  background: white;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.documents-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 15px;
}

.documents-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.document-item {
  display: flex;
  align-items: center;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.document-item:hover {
  background: #f1f3f5;
  transform: translateX(3px);
}

.document-icon {
  width: 40px;
  height: 40px;
  background: #e9ecef;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  color: var(--primary);
  font-size: 1.2rem;
}

.document-info {
  flex: 1;
}

.document-title {
  font-weight: 600;
  color: var(--dark);
  font-size: 0.95rem;
}

.document-expiry {
  font-size: 0.85rem;
  color: var(--gray);
}

.document-status {
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.document-status-valid {
  background: rgba(46, 204, 113, 0.15);
  color: #27ae60;
}

.document-status-warning {
  background: rgba(243, 156, 18, 0.15);
  color: #f39c12;
}

.document-status-expired {
  background: rgba(231, 76, 60, 0.15);
  color: #e74c3c;
}

.document-empty {
  text-align: center;
  padding: 15px;
  color: var(--gray);
  font-style: italic;
}

.documents-more {
  text-align: center;
  margin-top: 10px;
}

.more-link {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.more-link:hover {
  text-decoration: underline;
}

.more-link:after {
  content: '→';
  display: inline-block;
  margin-left: 3px;
  transition: transform 0.2s ease;
}

.more-link:hover:after {
  transform: translateX(3px);
}

.documents-add {
  margin-top: 15px;
  text-align: center;
}

.add-document-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  background: white;
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.add-document-btn:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(0, 86, 210, 0.2);
}


/* Style pour la section hero avec la photo en haut */
.vehicle-hero {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 30px;
  box-shadow: var(--shadow);
}

.vehicle-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.vehicle-hero:hover .vehicle-hero-image {
  transform: scale(1.05);
}

.vehicle-no-image-hero {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  color: #d1d5db;
  background: linear-gradient(145deg, #f2f6fc, #e6ebf5);
}

.vehicle-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: white;
}

.vehicle-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  color: white;
}

.vehicle-specs-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.vehicle-spec-badge {
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(5px);
  padding: 8px 15px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vehicle-info-card {
  background: white;
  border-radius: var(--radius);
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
}

.vehicle-summary {
  margin-bottom: 25px;
}

.vehicle-summary h3 {
  color: var(--primary);
  font-size: 1.3rem;
  margin-bottom: 15px;
  font-weight: 700;
  position: relative;
  padding-bottom: 10px;
}

.vehicle-summary h3:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
}

.vehicle-summary p {
  line-height: 1.7;
  color: #444;
}

.vehicle-meta {
  margin-top: 20px;
  border-top: 1px solid #f0f4f8;
  padding-top: 20px;
}

.vehicle-spec-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
}

.vehicle-spec {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gray);
  font-size: 0.95rem;
}

.vehicle-spec i {
  color: var(--primary);
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

.vehicle-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.vehicle-link:hover {
  color: var(--primary-dark);
  transform: translateX(3px);
}

/* Adaptations pour mobile */
@media (max-width: 768px) {
  .vehicle-hero {
    height: 300px;
  }
  
  .vehicle-title {
    font-size: 1.8rem;
  }
  
  .vehicle-spec-badge {
    font-size: 0.8rem;
  }
  
  .vehicle-hero-overlay {
    padding: 20px;
  }
  
  .vehicle-spec-group {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .vehicle-hero {
    height: 250px;
  }
}
/* Ajoutez ce style à votre CSS */
.tooltip-inner::after {
  content: "";
  white-space: pre;
}

/* OU si vous pouvez identifier un motif spécifique */
.tooltip-inner {
  display: flex;
}
.tooltip-inner span:first-child {
  display: none; /* Cache le premier "Pneus" */
}
/* Styles pour la section financière */
.finance-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.finance-title-section {
  flex: 1;
}

.finance-subtitle {
  color: #6c757d;
  margin-top: -0.5rem;
  font-size: 0.9rem;
}

.finance-actions {
  display: flex;
  gap: 0.8rem;
}

.btn-filter, .btn-export {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.8rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: white;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  margin: 0 auto;
}

.btn-filter:hover, .btn-export:hover {
  background: #f8f9fa;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Panneau de filtres */
.finance-filters {
  background: white;
  border-radius: 0.8rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.filters-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 200px;
}

.filter-group label {
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: #495057;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.filter-select {
  padding: 0.6rem;
  border-radius: 0.5rem;
  border: 1px solid #dee2e6;
  font-size: 0.9rem;
  width: 100%;
  background-color: white;
  transition: border-color 0.2s ease;
}

.filter-select:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.filter-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.8rem;
}

/* Cartes d'analyse */
.dashboard-analytics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.analytics-card {
  background: white;
  border-radius: 0.8rem;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.chart-title {
  font-size: 1.1rem;
  margin: 0;
  color: #495057;
}

.chart-controls {
  display: flex;
  align-items: center;
}

.chart-control-select {
  padding: 0.3rem 0.5rem;
  border-radius: 0.4rem;
  border: 1px solid #dee2e6;
  font-size: 0.8rem;
  background-color: white;
}

.chart-container {
  position: relative;
  height: 250px;
  margin-bottom: 1rem;
}

.chart-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  font-size: 0.9rem;
}

.trend-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  border-radius: 0.4rem;
  font-weight: 500;
}

.trend-up {
  background-color: rgba(46, 204, 113, 0.1);
  color: #27ae60;
}

.trend-down {
  background-color: rgba(231, 76, 60, 0.1);
  color: #c0392b;
}

/* Résumé financier */
.finance-summary {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.summary-card {
  background: white;
  border-radius: 0.8rem;
  padding: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.summary-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #495057;
}

.summary-icon i {
  opacity: 0.8;
}

.pulse-slow {
  animation: pulse 3s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.summary-info {
  display: flex;
  flex-direction: column;
}

.summary-label {
  font-size: 0.85rem;
  color: #6c757d;
  margin-bottom: 0.2rem;
}

.summary-value {
  font-size: 1.2rem;
  font-weight: 600;
  color: #212529;
}

.summary-period, .summary-percent {
  font-size: 0.8rem;
  color: #6c757d;
  margin-top: 0.2rem;
}

/* Onglets */
.finance-tabs {
  background: white;
  border-radius: 0.8rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.tab-header {
  display: flex;
  background: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
}

.tab-btn {
  flex: 1;
  padding: 1rem;
  text-align: center;
  background: transparent;
  border: none;
  cursor: pointer;
  font-weight: 500;
  color: #6c757d;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.tab-btn i {
  font-size: 0.9rem;
}

.tab-btn:hover {
  background: rgba(0, 0, 0, 0.02);
}

.tab-btn.active {
  color: #007bff;
  background: white;
  border-bottom: 2px solid #007bff;
}

.tab-content {
  display: none;
  padding: 1.5rem;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.tab-content.active {
  display: block;
}

/* Liste des dépenses récentes */
.recent-expenses {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.expense-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 0.6rem;
  transition: all 0.2s ease;
}

.expense-item:hover {
  background: #e9ecef;
  transform: translateX(5px);
}

.animate-in {
  animation: slideIn 0.3s forwards;
  opacity: 0;
  transform: translateY(10px);
}

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.expense-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: white;
}

.icon-frais {
  background: #007bff;
}

.icon-entretien {
  background: #e74c3c;
}

.expense-details {
  flex: 1;
}

.expense-title {
  font-weight: 500;
  color: #212529;
  margin-bottom: 0.2rem;
  display: flex;
  justify-content: space-between;
}

.expense-vehicle {
  font-size: 0.8rem;
  color: #6c757d;
  font-weight: normal;
}

.expense-date {
  font-size: 0.85rem;
  color: #6c757d;
}

.expense-amount {
  font-weight: 600;
  color: #212529;
}

.amount-high {
  color: #e74c3c;
}

.expense-actions {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.expense-item:hover .expense-actions {
  opacity: 1;
}

.btn-action-small {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #495057;
  transition: all 0.2s ease;
}

.btn-action-small:hover {
  background: #007bff;
  color: white;
}

/* Tableau des dépenses */
.expenses-table-container {
  overflow-x: auto;
}

/* Tableau des dépenses (suite) */
.table-controls {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.table-search {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.table-search i {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
}

.search-input {
  width: 100%;
  padding: 0.6rem 0.6rem 0.6rem 2rem;
  border-radius: 0.5rem;
  border: 1px solid #dee2e6;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.table-filter-dropdown {
  min-width: 200px;
}

.expenses-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

.expenses-table th {
  text-align: left;
  padding: 0.8rem;
  background-color: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
  position: sticky;
  top: 0;
  font-size: 0.9rem;
  color: #495057;
  white-space: nowrap;
}

.expenses-table th i {
  margin-left: 0.3rem;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.2s ease;
}

.expenses-table th i:hover {
  opacity: 1;
  color: #007bff;
}

.expenses-table td {
  padding: 0.8rem;
  border-bottom: 1px solid #dee2e6;
  font-size: 0.9rem;
  color: #212529;
  vertical-align: middle;
}

.expenses-table tr {
  transition: all 0.2s ease;
}

.data-row {
  cursor: pointer;
}

.no-data-cell {
  padding: 2rem !important;
  text-align: center;
}

.no-data {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.no-data i {
  font-size: 2.5rem;
  color: #dee2e6;
}

.no-data p {
  font-size: 1rem;
  color: #6c757d;
  margin: 0;
}

.expense-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.6rem;
  border-radius: 0.4rem;
  font-size: 0.8rem;
  white-space: nowrap;
  font-weight: 500;
}

.frais-carburant {
  background-color: rgba(52, 152, 219, 0.1);
  color: #2980b9;
}

.frais-assurance {
  background-color: rgba(155, 89, 182, 0.1);
  color: #8e44ad;
}

.frais-péages {
  background-color: rgba(243, 156, 18, 0.1);
  color: #d35400;
}

.frais-pneus {
  background-color: rgba(46, 204, 113, 0.1);
  color: #27ae60;
}

.entretien {
  background-color: rgba(231, 76, 60, 0.1);
  color: #c0392b;
}

.amount-cell {
  font-weight: 600;
  text-align: right;
}

.actions-cell {
  white-space: nowrap;
  text-align: right;
}

.btn-action {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  margin-left: 0.3rem;
  transition: all 0.2s ease;
  opacity: 0.9;
}

.btn-view {
  background-color: #007bff;
}

.btn-edit {
  background-color: #6c757d;
}



.btn-action:hover {
  opacity: 1;
  transform: scale(1.1);
}

.view-all {
  text-align: center;
  margin-top: 1rem;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background-color: #f8f9fa;
  border-radius: 0.5rem;
  text-decoration: none;
  color: #007bff;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-link:hover {
  background-color: #e9ecef;
  transform: translateX(5px);
}

/* Effet de surbrillance pour recherche */
.highlighted-row {
  background-color: rgba(0, 123, 255, 0.1) !important;
  animation: highlight 1s ease-out;
}

@keyframes highlight {
  0% {
    background-color: rgba(0, 123, 255, 0.3);
  }
  100% {
    background-color: rgba(0, 123, 255, 0.1);
  }
}

/* Contenu étendu dans les tableaux */
.expanded-details {
  background-color: #f8f9fa;
}

.expanded-content {
  padding: 1.5rem;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.expanded-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.detail-group h4 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #495057;
}

.detail-group p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

.action-buttons {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
}

.loading-spinner {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 3px solid rgba(0, 123, 255, 0.2);
  border-top-color: #007bff;
  animation: spin 1s linear infinite;
  margin: 1rem auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Graphiques */
.chart-shadow {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  border-radius: 0.5rem;
}

.no-expenses {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 250px;
  gap: 1rem;
}




/* Conteneur principal des légendes */
.legend-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
  padding: 0.5rem;
  max-height: 300px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 123, 255, 0.3) rgba(0, 0, 0, 0.05);
}

/* Version compacte des légendes */
.legend-items.compact {
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 0.8rem;
}

/* Élément individuel de légende */
.legend-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  background-color: white;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: visible; /* Permet au pourcentage de dépasser si nécessaire */
}

/* Cercle de couleur */
.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.8);
}

/* Conteneur d'informations avec flexibilité pour le texte long */
.legend-info {
  flex: 1;
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* Nom de la légende avec structure améliorée */
.legend-name {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #212529;
  margin-bottom: 0.4rem;
  position: relative;
  width: 100%;
}

/* Conteneur pour le texte de la légende qui peut être tronqué */
.legend-title {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 10px; /* Espace pour éviter que le texte ne touche le pourcentage */
  max-width: calc(100% - 50px); /* Réservez de l'espace pour le pourcentage */
}

/* Élément de pourcentage détaché du flux pour éviter la troncature */
.legend-percent {
  font-weight: 600;
  white-space: nowrap;
  position: absolute;
  right: 0;
  top: 0;
  background: rgba(0, 123, 255, 0.08);
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  font-size: 0.8rem;
  min-width: 32px;
  text-align: center;
}

/* Montant de la légende */
.legend-amount {
  font-size: 0.8rem;
  color: #6c757d;
}

/* Effet de surbrillance au survol */
.highlight-on-hover:hover {
  background-color: #f8f9fa;
  transform: translateX(5px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
  z-index: 1;
}

/* Animation de tooltip pour le texte tronqué */
.legend-title:hover::after {
  content: attr(data-full-text);
  position: absolute;
  left: 0;
  top: -10px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  white-space: nowrap;
  z-index: 10;
  opacity: 1;
  pointer-events: none;
}

/* Adaptations pour les écrans mobiles */
@media (max-width: 768px) {
  .legend-items,
  .legend-items.compact {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (max-width: 576px) {
  .legend-items,
  .legend-items.compact {
    grid-template-columns: 1fr;
  }
}

.see-more-container {
  text-align: center;
  margin-top: 1rem;
}

.btn-see-more {
  background: none;
  border: none;
  color: #007bff;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 auto;
  padding: 0.5rem 1rem;
  border-radius: 0.4rem;
  transition: all 0.2s ease;
}

.btn-see-more:hover {
  background-color: rgba(0, 123, 255, 0.1);
}

/* Animation pour bouton d'action */
.button-pulse {
  animation: actionPulse 0.4s ease;
}

@keyframes actionPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Styles responsive */
@media (max-width: 768px) {
  .finance-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .finance-actions {
    width: 100%;
    justify-content: space-between;
    display: flex;
    margin: 0 auto;
  }
  
  .filter-group {
    min-width: 100%;
  }
  
  .finance-summary {
    grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
  }
  
  .dashboard-analytics {
    grid-template-columns: 1fr;
  }
  
  .expanded-details-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .tab-btn {
    padding: 0.8rem 0.5rem;
    font-size: 0.85rem;
  }
  
  .tab-btn i {
    margin-right: 0.3rem;
  }
  
  .expenses-table th, .expenses-table td {
    padding: 0.6rem;
  }
  
  .expenses-table {
    min-width: 650px;
  }
  
  .expenses-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Animations supplémentaires */
.card-style {
  background: white;
  border-radius: 0.8rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.pulse-button {
  animation: pulse-anim 1.5s infinite;
}

@keyframes pulse-anim {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 123, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
  }
}
.period-indicator {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding: 8px 12px;
  background-color: #f8f9fa;
  border-radius: 5px;
}

.badge-info {
  background-color: #17a2b8;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.85rem;
}
/* Styles pour les configurations de colonnes */
.dashboard-analytics.single-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 24px;
}

.dashboard-analytics.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

/* Style pour les graphiques qui prennent toute la largeur */
.dashboard-analytics.single-column .analytics-card {
  width: 100%;
}

/* Responsive - Sur mobile, afficher en colonnes */
@media (max-width: 768px) {
  .dashboard-analytics.two-columns {
    grid-template-columns: 1fr;
  }
}

/* Augmenter la hauteur du graphique d'évolution des dépenses */
.dashboard-analytics.single-column .chart-container {
  height: 900px; /* Augmentez cette valeur pour agrandir le graphique */
  min-height: 400px;
}
/* Ciblage spécifique du graphique d'évolution des dépenses */
.expenses-chart-container {
    height: 50px !important;
    min-height: 450px !important;
    width: 100% !important;
    padding: 10px !important;
}
.expenses-chart-container {
    height: auto !important;
    min-height: 450px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px !important;
    margin: 0 !important;
    overflow: visible !important;
}

.chart-container {
    position: relative;
    height: auto !important;
    min-height: 450px !important;
    width: 100% !important;
    margin-bottom: 1rem;
    overflow: visible !important;
}

canvas {
    max-width: 100% !important;
    width: 100% !important;
}

/* Styles pour le filtre véhicule */
.finance-filters {
  display: flex;
  align-items: center;
  margin-left: 20px;
}

.filter-item {
  margin-right: 10px;
}

/* Styles pour le filtre véhicule (suite) */
.select-styled {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #ddd;
  background-color: white;
  font-size: 0.9rem;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  min-width: 200px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
}

.select-styled:hover, .select-styled:focus {
  border-color: #007bff;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
  outline: none;
}

/* Overlay de chargement */
.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  border-radius: 0.75rem;
  backdrop-filter: blur(2px);
}

.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.loading-spinner i {
  font-size: 2rem;
  color: #007bff;
  margin-bottom: 10px;
}

/* Animation pour mettre en évidence les mises à jour */
.update-highlight {
  animation: highlight-update 1.5s ease;
}

@keyframes highlight-update {
  0% { background-color: transparent; }
  20% { background-color: rgba(0, 123, 255, 0.1); }
  100% { background-color: transparent; }
}

/* Styles pour les notifications */
.notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: white;
  border-radius: 8px;
  padding: 15px;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 9999;
  max-width: 350px;
}

.notification.show {
  transform: translateY(0);
  opacity: 1;
}

.notification-success {
  border-left: 4px solid #2ecc71;
}

.notification-error {
  border-left: 4px solid #e74c3c;
}

.notification-info {
  border-left: 4px solid #3498db;
}

.notification-icon {
  margin-right: 12px;
  font-size: 1.2rem;
}

.notification-success .notification-icon {
  color: #2ecc71;
}

.notification-error .notification-icon {
  color: #e74c3c;
}

.notification-info .notification-icon {
  color: #3498db;
}

.notification-message {
  flex: 1;
  font-size: 0.9rem;
}

.notification-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #95a5a6;
  margin-left: 8px;
  padding: 0;
}

.notification-close:hover {
  color: #7f8c8d;
}
/* Mise à jour du style de l'en-tête finances */
.finance-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  gap: 15px;
}

.finance-title-section {
  flex: 1;
  min-width: 300px;
}

.finance-title-section .section-title {
  margin: 0;
}

.finance-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.finance-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.filter-item {
  position: relative;
  display: flex;
  align-items: center;
}

.filter-item:before {
  content: '\f0b0';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  font-size: 0.9rem;
  margin-right: 8px;
  color: #6c757d;
}

.btn-export {
  background-color: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  padding: 0.5rem 0.8rem;
  font-size: 0.9rem;
  color: #495057;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-export:hover {
  background-color: #e9ecef;
  border-color: #ced4da;
}

.btn-export i {
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .finance-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .finance-filters,
  .finance-actions {
    width: 100%;
    justify-content: flex-start;
    margin-top: 10px;
  }
  
  .select-styled {
    width: 100%;
    max-width: unset;
  }
}

/* Ajouter au fichier style2.css */
.dataTables_wrapper {
    width: 100%;
    overflow-x: auto;
}

.table-frais {
    min-width: 650px; /* Largeur minimale pour assurer la lisibilité */
    width: 100% !important;
}

@media (max-width: 768px) {
    .frais-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .add-frais-btn {
        align-self: stretch;
        text-align: center;
    }
}
/* Ajouter au fichier style2.css pour améliorer l'expérience mobile */
@media (max-width: 480px) {
    .summary-cards {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .summary-card {
        padding: 10px;
    }
    
    .summary-value {
        font-size: 1.8rem;
    }
    
    .summary-label {
        font-size: 13px;
    }
    
    .dataTables_length, .dataTables_filter {
        width: 100%;
        margin-bottom: 10px;
        text-align: left;
    }
    
    .dataTables_filter input {
        width: 100%;
        box-sizing: border-box;
        margin-left: 0;
    }
}
/* Styles pour les boutons d'actions */
.edit-btn, .delete-btn {
  padding: 5px 8px;
  border-radius: 4px;
  border: none;
  margin-right: 5px;
  cursor: pointer;
  transition: all 0.2s;
}

.edit-btn {
  background-color: #4CAF50;
  color: white;
}

.edit-btn:hover {
  background-color: #3e8e41;
}

.delete-btn {
  background-color: #f44336;
  color: white;
}

.delete-btn:hover {
  background-color: #d32f2f;
}

/* Styles pour les aperçus de photos */
.photo-preview-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin: 15px 0;
}

.photo-preview-item {
  text-align: center;
}

.photo-preview-item img {
  width: 100%;
  max-height: 100px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
}

.pdf-preview {
  background-color: #f5f5f5;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.pdf-preview i {
  font-size: 36px;
  color: #e74c3c;
}

.photo-preview-item p {
  margin-top: 5px;
  font-size: 12px;
}

.fc-scrollgrid {
  border-right: none !important;
  width: 100% !important;
}

.fc-scroller {
  overflow-y: auto !important;
  padding-right: 0 !important; /* Supprimez ce padding */
}

.calendar-styled {
  width: 100%; /* 100% sans ajout */
  margin-right: 0; /* Pas de marge négative */
}

.calendar-container {
  width: 100%;
  overflow-x: visible; /* Changez hidden à visible */
}

/* Corrigez également ceci si le problème persiste */
.fc .fc-scrollgrid-liquid {
  height: 100%;
  width: 100% !important;
}

/* Assurez-vous que la cellule du dernier jour n'a pas de style spécial qui cause des problèmes */
.fc-daygrid-day:last-child, 
.fc-col-header-cell:last-child {
  padding-right: 0 !important; /* Supprimez ce padding spécial */
}

/* Styles de base pour le calendrier - à ajouter après avoir supprimé les styles problématiques */
#calendar {
  margin-top: 1.5rem;
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius);
  padding: 1rem;
  background: white;
  width: 100%;
}

.calendar-container {
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.04);
  padding: 20px;
  margin-top: 20px;
  width: 100%;
  overflow: hidden; /* Contenir tout débordement */
}

.calendar-styled {
  width: 100%;
}

/* Force le contenu à rester dans les limites */
.fc .fc-scrollgrid {
  width: 100% !important;
  border: none !important;
}
/* SOLUTION COMPLÈTE POUR LE CALENDRIER */
/* Ajoutez ces règles à la fin de votre fichier style2.css */

/* Supprime tout défilement horizontal et force la largeur à 100% */
.calendar-container {
  width: 100% !important;
  overflow: hidden !important; /* Masque tout dépassement */
}

#calendar, 
.fc, 
.fc-view-container,
.fc-view,
.fc-scroller,
.fc-day-grid-container,
.fc-scrollgrid,
.fc-scrollgrid-liquid {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: visible !important;
  border-right: none !important;
  padding-right: 0 !important;
  margin-right: 0 !important;
}

/* Force les éléments à utiliser la largeur complète disponible */
.fc .fc-scrollgrid-section-body table,
.fc .fc-scrollgrid-section-header table,
.fc .fc-daygrid-body,
.fc-scrollgrid-sync-table {
  width: 100% !important;
}

/* Neutralise tous les styles qui peuvent causer le problème */
.fc-scrollgrid {
  border-right: none !important;
  width: 100% !important;
}

.fc-scroller {
  overflow-y: auto !important;
  padding-right: 0 !important;
}

.calendar-styled {
  width: 100% !important;
  margin-right: 0 !important;
}

/* Retire tous les styles qui pourraient causer un défilement */
.fc-daygrid-day:last-child, 
.fc-col-header-cell:last-child {
  padding-right: 0 !important;
}

/* Widget d'entretiens à venir */
.upcoming-maintenance-widget {
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
  padding: 20px;
  margin: 20px 0;
  width: 100%;
  max-width: 500px;
  position: relative;
  overflow: hidden;
  border-left: 4px solid var(--primary);
  transition: all 0.3s ease;
}

.upcoming-maintenance-widget:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.widget-header h3 {
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.widget-header .badge {
  background-color: var(--primary);
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  height: 26px;
  width: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.no-maintenance {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 25px 15px;
  color: #6c757d;
  text-align: center;
}

.no-maintenance i {
  font-size: 2.5rem;
  color: #2ecc71;
  margin-bottom: 10px;
  opacity: 0.7;
}

.no-maintenance p {
  margin: 0;
  font-size: 0.95rem;
}

.maintenance-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.maintenance-item {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  background: #f8f9fa;
  border-radius: 12px;
  transition: all 0.2s ease;
  border: 1px solid rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}

.maintenance-item:hover {
  background: #f0f4f8;
  transform: translateX(5px);
}

.maintenance-item.urgent {
  background-color: rgba(231, 76, 60, 0.07);
  border-color: rgba(231, 76, 60, 0.15);
}

.maintenance-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: white;
  width: 50px;
  height: 50px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  margin-right: 15px;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.maintenance-date .day {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.maintenance-date .month {
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 600;
  color: #6c757d;
}

.maintenance-info {
  flex: 1;
  min-width: 0;
}

.maintenance-type {
  font-weight: 600;
  color: #212529;
  font-size: 0.95rem;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.maintenance-vehicle {
  color: #6c757d;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.days-counter {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 10px;
  background: #e9ecef;
  border-radius: 20px;
  color: #495057;
  margin-left: 10px;
  white-space: nowrap;
}

.days-counter.urgent {
  background: rgba(231, 76, 60, 0.15);
  color: #c0392b;
}

.see-all-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  margin-top: 8px;
  background: #f8f9fa;
  border-radius: 10px;
  color: var(--primary);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
  gap: 5px;
}

.see-all-link:hover {
  background: rgba(0, 86, 210, 0.07);
  transform: translateY(-2px);
}

.see-all-link i {
  font-size: 0.8rem;
  transition: transform 0.2s ease;
}

.see-all-link:hover i {
  transform: translateX(3px);
}

/* Adaptations pour mobiles */
@media (max-width: 768px) {
  .welcome-dashboard {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  
  .upcoming-maintenance-widget {
    max-width: 100%;
    margin: 15px 0;
    padding: 15px;
  }
  
  .widget-header h3 {
    font-size: 1rem;
  }
  
  .widget-header .badge {
    width: 24px;
    height: 24px;
    font-size: 0.8rem;
  }
  
  .maintenance-date {
    width: 45px;
    height: 45px;
    margin-right: 10px;
  }
  
  .maintenance-date .day {
    font-size: 1.1rem;
  }
  
  .maintenance-date .month {
    font-size: 0.65rem;
  }
  
  .maintenance-type {
    font-size: 0.9rem;
  }
  
  .maintenance-vehicle {
    font-size: 0.8rem;
  }
  
  .days-counter {
    font-size: 0.75rem;
    padding: 4px 8px;
  }
}

@media (max-width: 480px) {
  .upcoming-maintenance-widget {
    padding: 12px;
  }
  
  .widget-header {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .widget-header h3 {
    font-size: 0.95rem;
    width: calc(100% - 30px);
  }
  
  .maintenance-item {
    padding: 8px 10px;
  }
  
  .maintenance-date {
    width: 40px;
    height: 40px;
    margin-right: 8px;
  }
  
  .maintenance-date .day {
    font-size: 1rem;
  }
  
  .maintenance-date .month {
    font-size: 0.6rem;
  }
  
  .maintenance-info {
    flex: 1;
    min-width: 0;
  }
  
  .maintenance-type {
    font-size: 0.85rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  .maintenance-vehicle {
    font-size: 0.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  .days-counter {
    font-size: 0.7rem;
    padding: 3px 6px;
    margin-left: 0;
    flex-shrink: 0;
  }
  
  .see-all-link {
    font-size: 0.85rem;
    padding: 8px 12px;
  }
}
/* Nouveau style pour le widget des dépenses */
.expenses-widget {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  padding: 0;
  position: relative;
  overflow: hidden;
  border-left: 4px solid #0056d2;
  min-height: auto;
}

.expenses-widget .card-content {
  display: flex;
  width: 100%;
  padding: 20px;
}

.expenses-widget .card-left {
  margin-right: 25px;
  display: flex;
  align-items: flex-start;
  padding-top: 5px;
}

.chart-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #f1f6ff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chart-icon i {
  color: #0056d2;
  font-size: 1.2rem;
}

.expenses-widget .card-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.total-amount {
  font-size: 1.7rem;
  font-weight: 700;
  color: #0056d2;
  margin-bottom: 15px;
}

.expenses-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.expense-line {
  display: flex;
  align-items: center;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 15px;
  flex-shrink: 0;
}

.dot.blue {
  background-color: #0056d2;
}

.dot.green {
  background-color: #2ecc71;
}

.label {
  flex: 1;
  color: #495057;
  font-size: 0.95rem;
  font-weight: 500;
}

.value {
  font-weight: 600;
  color: #343a40;
  font-size: 0.95rem;
  text-align: right;
  min-width: 100px;
}

/* Adaptations pour mobile */
@media (max-width: 768px) {
  .expenses-widget .card-content {
    padding: 15px;
  }
  
  .chart-icon {
    width: 40px;
    height: 40px;
  }
  
  .total-amount {
    font-size: 1.4rem;
  }
  
  .label, .value {
    font-size: 0.9rem;
  }
}
/* Widget des dépenses du mois */
.expenses-widget {
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
  padding: 20px;
  margin: 20px 0;
  width: 100%;
  max-width: 500px;
  position: relative;
  overflow: hidden;
  border-left: 4px solid #0056d2;
  transition: all 0.3s ease;
}

.expenses-widget:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.widget-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
}

.widget-header i {
  font-size: 1.3rem;
  color: #0056d2;
  margin-right: 12px;
  background: rgba(0, 86, 210, 0.1);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.widget-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin: 0;
  flex: 1;
}

.total-badge {
  background: linear-gradient(45deg, #0056d2, #5d96e3);
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(0, 86, 210, 0.2);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* AMÉLIORATION : Badge de variation mois vs mois */
.variation-badge {
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  animation: fadeInScale 0.5s ease;
}

.variation-badge.positive {
  background: linear-gradient(135deg, #d4edda, #c3e6cb);
  color: #155724;
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}

.variation-badge.negative {
  background: linear-gradient(135deg, #f8d7da, #f5c6cb);
  color: #721c24;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
}

.variation-badge i {
  font-size: 0.75rem;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Barre de progression */
.expenses-progress {
  margin-bottom: 20px;
}

.progress-bar {
  height: 8px;
  background-color: #f1f1f1;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  margin-bottom: 10px;
}

.progress-segment {
  height: 100%;
}

.progress-segment.frais {
  background-color: #0056d2;
}

.progress-segment.entretiens {
  background-color: #2ecc71;
}

.progress-labels {
  display: flex;
  justify-content: flex-start;
  gap: 20px;
}

.progress-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #666;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.dot.frais {
  background-color: #0056d2;
}

.dot.entretiens {
  background-color: #2ecc71;
}

/* Liste des dépenses */
.expenses-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.expense-item {
  display: flex;
  align-items: center;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.expense-item:hover {
  background: #f0f4f8;
  transform: translateX(5px);
}

.expense-icon {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  flex-shrink: 0;
}

.expense-icon.frais {
  background-color: rgba(0, 86, 210, 0.1);
  color: #0056d2;
}

.expense-icon.entretiens {
  background-color: rgba(46, 204, 113, 0.1);
  color: #2ecc71;
}

.expense-details {
  flex: 1;
  min-width: 0;
}

.expense-title {
  font-weight: 600;
  color: #333;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.expense-subtitle {
  color: #6c757d;
  font-size: 0.8rem;
}

.expense-amount {
  font-weight: 700;
  color: #333;
  font-size: 1.1rem;
  margin-left: 15px;
}

/* Adaptations pour mobile - Améliorées */
@media (max-width: 768px) {
  .expenses-widget {
    max-width: 100%;
    margin: 15px 0;
    padding: 15px;
  }
  
  .widget-header {
    flex-wrap: wrap;
  }
  
  .widget-header i {
    width: 35px;
    height: 35px;
    font-size: 1.1rem;
  }
  
  .widget-header h3 {
    font-size: 1rem;
  }
  
  .total-badge {
    font-size: 1rem;
    padding: 6px 12px;
    width: 100%;
    margin-top: 10px;
    justify-content: center;
  }
  
  .expense-item {
    padding: 12px;
  }
  
  .expense-icon {
    width: 40px;
    height: 40px;
  }
  
  .expense-amount {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .expenses-widget {
    padding: 12px;
  }
  
  .widget-header i {
    width: 32px;
    height: 32px;
    font-size: 1rem;
    margin-right: 8px;
  }
  
  .widget-header h3 {
    font-size: 0.95rem;
    flex: 1;
  }
  
  .total-badge {
    font-size: 0.9rem;
    padding: 5px 10px;
  }
  
  .variation-badge {
    font-size: 0.75rem;
    padding: 3px 6px;
  }
  
  .expense-item {
    padding: 10px;
  }
  
  .expense-icon {
    width: 36px;
    height: 36px;
  }
  
  .expense-title {
    font-size: 0.85rem;
  }
  
  .expense-subtitle {
    font-size: 0.7rem;
  }
  
  .expense-amount {
    font-size: 0.95rem;
    margin-left: 8px;
  }
}


.btn-export {
    background-color: #fff;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-export:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 86, 210, 0.3);
}

.btn-export:disabled {
    opacity: 0.7;
    cursor: wait;
}

.btn-export .fa-spinner {
    animation: spin 1s linear infinite;
}

/* Bouton PDF rouge avec style uniforme */
.btn-export-pdf {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: 2px solid #ef4444;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-export-pdf:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border-color: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.btn-export-pdf:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
}

.btn-export-pdf i {
    font-size: 1.1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.total-display {
    text-align: center;
    margin: 5px 0;
    font-size: 8px;
}

.total-amount {
    color: #333;
    font-weight: 600;
}

.total-period {
    font-size: 4px;
    color: #666;
}

/* Améliorations pour les widgets sur les petits écrans */
@media (max-width: 576px) {
  /* Widget des entretiens */
  .widget-header {
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .widget-header h3 {
    font-size: 1rem;
    width: 100%;
  }
  
  .widget-header .badge {
    position: absolute;
    top: 10px;
    right: 10px;
  }
  
  .maintenance-item {
    flex-wrap: wrap;
    padding: 10px;
  }
  
  .maintenance-info {
    width: calc(100% - 60px); /* Tenir compte de la largeur de la date */
    margin-bottom: 8px;
  }
  
  .days-counter {
    width: 100%;
    margin-left: 60px; /* Aligner avec le contenu principal */
    text-align: left;
    box-sizing: border-box;
  }
  
  /* Widget des dépenses */
  .total-badge {
    font-size: 0.9rem;
    padding: 5px 10px;
  }
  
  .progress-labels {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
  .expense-item {
    flex-wrap: wrap;
  }
  
  .expense-details {
    width: calc(100% - 60px);
  }
  
  .expense-amount {
    width: 100%;
    margin-left: 60px;
    margin-top: 5px;
    text-align: left;
  }
}

/* Ajustements supplémentaires pour les très petits écrans */
@media (max-width: 375px) {
  .maintenance-date {
    width: 40px;
    height: 40px;
  }
  
  .maintenance-date .day {
    font-size: 1rem;
  }
  
  .maintenance-date .month {
    font-size: 0.65rem;
  }
  
  .expense-icon {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
  
  .expense-title {
    font-size: 0.9rem;
  }
  
  .expense-subtitle {
    font-size: 0.75rem;
  }
  
  .days-counter, .expense-amount {
    margin-left: 50px;
  }
  
  .maintenance-info, .expense-details {
    width: calc(100% - 50px);
  }
}

/* Règles générales pour améliorer la responsivité */
.upcoming-maintenance-widget, .expenses-widget {
  box-sizing: border-box;
  width: 100%;
}

.expense-details, .maintenance-info {
  overflow: hidden;
  text-overflow: ellipsis;
}

.maintenance-type, .expense-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Pour éviter les débordements */
.total-badge, .days-counter {
  white-space: nowrap;
}

/* Améliorer la flexibilité sur tous les écrans */
.widget-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

/* Amélioration de base pour les cartes de résumé */
.summary-card {
  text-align: center;
  overflow: hidden; /* Empêche le débordement de contenu */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.summary-value, .summary-label {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Styles pour les écrans de taille moyenne */
@media (max-width: 768px) {
  .summary-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .summary-card {
    padding: 15px 10px;
  }
  
  .summary-card i {
    font-size: 24px;
    margin-bottom: 10px;
  }
  
  .summary-value {
    font-size: 20px;
  }
}

/* Styles pour les petits écrans */
@media (max-width: 480px) {
  .summary-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .summary-card {
    padding: 10px 8px;
  }
  
  .summary-card i {
    font-size: 20px;
    margin-bottom: 8px;
  }
  
  .summary-value {
    font-size: 16px;
    margin-bottom: 3px;
  }
  
  .summary-label {
    font-size: 12px;
  }
}

/* Styles pour les très petits écrans */
@media (max-width: 375px) {
  .summary-cards {
    grid-template-columns: 1fr; /* Une seule colonne pour les très petits écrans */
    gap: 10px;
  }
  
  .summary-card {
    display: flex;
    flex-direction: row;
    text-align: left;
    padding: 12px;
    align-items: center;
  }
  
  .summary-card i {
    font-size: 18px;
    margin-bottom: 0;
    margin-right: 15px;
  }
  
  .summary-info {
    flex: 1;
  }
  
  .summary-value {
    font-size: 16px;
    margin-bottom: 0;
  }
  
  .summary-label {
    font-size: 12px;
  }
}

/* Pour les très petits écrans sans modifier le HTML */
@media (max-width: 375px) {
  .summary-cards {
    grid-template-columns: 1fr; /* Une seule colonne */
  }
  
  .summary-card {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas: 
      "icon value"
      "icon label";
    text-align: left;
    padding: 12px;
    gap: 0 15px;
    align-items: center;
  }
  
  .summary-card i {
    grid-area: icon;
    font-size: 24px;
    margin: 0;
  }
  
  .summary-value {
    grid-area: value;
    font-size: 16px;
    margin: 0;
  }
  
  .summary-label {
    grid-area: label;
    font-size: 12px;
  }
}
/* Améliorations générales pour les summary-cards */
.summary-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* Adaptation de la couleur des icônes pour meilleure lisibilité */
.summary-card:first-child i { color: #3498db; } /* Voitures */
.summary-card:nth-child(2) i { color: #2ecc71; } /* Kilométrage */
.summary-card:nth-child(3) i { color: #f1c40f; } /* Année */
.summary-card:nth-child(4) i { color: #e74c3c; } /* Motorisation */

/* Pour éviter les problèmes de débordement sur les valeurs longues */
.summary-value {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}


.summary-card:nth-child(1) { animation-delay: 0.1s; }
.summary-card:nth-child(2) { animation-delay: 0.2s; }
.summary-card:nth-child(3) { animation-delay: 0.3s; }
.summary-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Configuration de base pour les cartes de résumé */
.summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

/* Pour les écrans de taille moyenne */
@media (max-width: 992px) {
  .summary-cards {
    grid-template-columns: repeat(2, 1fr); /* 2 cartes par ligne */
    gap: 15px;
  }
}

/* Pour les petits écrans */
@media (max-width: 576px) {
  .summary-cards {
    grid-template-columns: 1fr; /* 1 carte par ligne - empilé verticalement */
    gap: 12px;
  }
  
  .summary-card {
    padding: 15px;
    display: flex;
    flex-direction: row;
    text-align: left;
    align-items: center;
  }
  
  .summary-card i {
    font-size: 24px;
    margin-right: 15px;
    margin-bottom: 0;
    min-width: 40px;
    display: flex;
    justify-content: center;
  }
  
  .summary-value {
    font-size: 18px;
    margin-bottom: 2px;
  }
  
  .summary-label {
    font-size: 13px;
  }
}

/* Pour les très petits écrans */
@media (max-width: 375px) {
  .summary-card {
    padding: 12px 10px;
  }
  
  .summary-card i {
    font-size: 20px;
  }
  
  .summary-value {
    font-size: 16px;
  }
  
  .summary-label {
    font-size: 12px;
  }
}





/* Conteneur des actions d'abonnement */
.subscription-actions {
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 1px solid #dee2e6;
    text-align: center;
}

.subscription-actions h3 {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Boutons de gestion d'abonnement */
.btn-subscription {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Bouton d'annulation (rouge/orange) */
.btn-cancel-renewal {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
}

.btn-cancel-renewal:hover {
    background: linear-gradient(135deg, #ff5252 0%, #e53935 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.btn-cancel-renewal:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(255, 107, 107, 0.2);
}

/* Bouton d'activation (vert) */
.btn-enable-renewal {
    background: linear-gradient(135deg, #51cf66 0%, #40c057 100%);
    color: white;
}

.btn-enable-renewal:hover {
    background: linear-gradient(135deg, #40c057 0%, #37b24d 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(81, 207, 102, 0.3);
}

.btn-enable-renewal:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(81, 207, 102, 0.2);
}

/* Icônes dans les boutons */
.btn-subscription i {
    font-size: 16px;
}

/* État de chargement */
.btn-subscription:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Message d'information sur l'abonnement */
.subscription-info {
    margin-top: 15px;
    padding: 12px;
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    border-radius: 4px;
    font-size: 13px;
    color: #1565c0;
}
.vehicle-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  padding: 20px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-height: 44px;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Effet de survol avec vague */
.action-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.action-btn:hover::before {
  width: 300px;
  height: 300px;
}

/* Bouton principal (partage) */
.action-btn--primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.action-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.action-btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* Bouton d'avertissement (transfert) */
.action-btn--warning {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
}

.action-btn--warning:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 87, 108, 0.4);
}

.action-btn--warning:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(245, 87, 108, 0.3);
}

/* Icônes */
.action-btn i {
  font-size: 16px;
  z-index: 2;
  position: relative;
}

.action-btn span {
  z-index: 2;
  position: relative;
}

/* États désactivés */
.action-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.action-btn:disabled::before {
  display: none;
}

/* Animation de chargement */
.action-btn--loading {
  pointer-events: none;
}

.action-btn--loading i {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
  .vehicle-actions {
    flex-direction: column;
    gap: 10px;
  }
  
  .action-btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 16px;
  }
  
  .action-btn i {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .action-btn span {
    display: none;
  }
  
  .action-btn {
    width: auto;
    min-width: 50px;
    padding: 12px;
    border-radius: 50%;
  }
  
  .vehicle-actions {
    flex-direction: row;
    justify-content: center;
  }
}

/* Variante avec thème sombre (optionnel) */
@media (prefers-color-scheme: dark) {
  .vehicle-actions {
    border-top-color: rgba(255, 255, 255, 0.1);
  }
  
  .action-btn {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }
}

/* Animation d'entrée */
.vehicle-actions {
  animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Effet focus pour l'accessibilité */
.action-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.4);
}

.action-btn--warning:focus {
  box-shadow: 0 0 0 3px rgba(245, 87, 108, 0.4);
}
.action-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #28a745;
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.action-badge--warning {
  background: #dc3545;
}
.action-btn[data-tooltip] {
  position: relative;
}

.action-btn[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  margin-bottom: 8px;
  max-width: 200px;
  white-space: normal;
  text-align: center;
  line-height: 1.3;
  z-index: 1000;
}

.action-btn[data-tooltip]:hover::after {
  opacity: 1;
}
/* Sélecteur d'entretien */
.entretien-selector {
    position: relative;
    width: 100%;
}

.selected-entretien {
    border: 2px solid #e8ecf4;
    padding: 15px 20px;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.selected-entretien:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 86, 210, 0.1);
}

.selected-text {
    color: #666;
    font-style: italic;
}

.selected-text.has-value {
    color: #333;
    font-style: normal;
    font-weight: 500;
}

/* Modal de sélection */
#entretienPickerModal .modal-dialog {
    max-width: 900px;
    width: 90%;
}

/* Barre de recherche */
.search-container {
    position: relative;
    margin-bottom: 20px;
}

.search-container input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid #e8ecf4;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-container input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 86, 210, 0.1);
    outline: none;
}

.search-container i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

/* Filtres par catégorie */
.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.category-btn {
    padding: 8px 16px;
    border: 2px solid #e8ecf4;
    background: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.category-btn:hover,
.category-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Grille des entretiens */
.entretiens-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}

.entretien-item {
    border: 2px solid #f0f4f8;
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    text-align: center;
}

.entretien-item:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 86, 210, 0.15);
    cursor: pointer;
}

.entretien-item.selected {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.02);
}

.entretien-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.entretien-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 5px;
    line-height: 1.3;
}

.entretien-category {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.entretien-item.selected .entretien-category {
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive */
@media (max-width: 768px) {
    .entretiens-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 10px;
    }
    
    .category-filters {
        gap: 5px;
    }
    
    .category-btn {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    /* AMÉLIORATION : Responsive pour les statistiques de coût */
    .vehicle-cost-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .cost-stat-item {
        padding: 0.6rem;
    }
    
    .cost-stat-value {
        font-size: 0.9rem;
    }
    
    .cost-stat-label {
        font-size: 0.65rem;
    }
    
    /* Badge de variation plus petit sur mobile */
    .variation-badge {
        font-size: 0.75rem;
        padding: 3px 8px;
    }
    
    .total-badge {
        font-size: 0.95rem;
        padding: 6px 12px;
        flex-direction: column;
        gap: 4px;
    }
}


/* Styles pour la gestion d'abonnement */
.subscription-actions {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.subscription-actions h3 {
    color: #1a3c61;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
}

.btn-subscription {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.btn-cancel-renewal {
    background: #dc3545;
    color: white;
}

.btn-cancel-renewal:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.btn-enable-renewal {
    background: #28a745;
    color: white;
}

.btn-enable-renewal:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.btn-subscription:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.subscription-info {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    color: #1565c0;
}

.subscription-info i {
    margin-right: 8px;
    font-size: 1rem;
}

.subscription-info.warning {
    background: #fff3cd;
    border-left-color: #ffc107;
    color: #856404;
}

/* Responsive */
@media (max-width: 768px) {
    .subscription-actions {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .btn-subscription {
        width: 100%;
        text-align: center;
    }
}