:root {
  --primary: #2563eb;
  --primary-light: #3b82f6;
  --primary-dark: #1d4ed8;
  --secondary: #10b981;
  --accent: #f59e0b;
  --dark: #1e293b;
  --light: #f8fafc;
  --gray: #94a3b8;
  --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
  --gradient-accent: linear-gradient(135deg, var(--primary), var(--accent));
}

/* Objectifs grid (About page) */
.objectifs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 20px;
}

@media (max-width: 1200px) {
  .objectifs-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .objectifs-grid { grid-template-columns: 1fr; }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 25%, #10b981 75%, #059669 100%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

/* Navigation */
nav {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.95), rgba(247, 147, 30, 0.95));
  backdrop-filter: blur(15px);
  padding: 25px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 8px 40px rgba(255, 107, 53, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav.scrolled {
  padding: 15px 5%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.logo {
  font-size: 2.2em;
  font-weight: 700;
  background: linear-gradient(135deg, #ffffff, #f0f9ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: white;
  display: flex;
  align-items: center;
  transition: all 0.5s ease;
  text-decoration: none;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo:hover {
  transform: scale(1.05);
}

.logo img {
  height: 80px;
  width: auto;
  margin-right: 15px;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.1);
}

.logo i {
  margin-right: 10px;
  font-size: 1.3em;
  animation: pulse 2s infinite;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  transition: all 0.3s ease;
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid transparent;
}

nav ul li a:hover,
nav ul li a.active {
  background: linear-gradient(135deg, #1e40af, #3b82f6);
  color: white;
  transform: translateY(-3px);
  border: 2px solid white;
  box-shadow: 0 8px 25px rgba(30, 64, 175, 0.4);
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

nav ul li a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.6em;
  transition: all 0.3s ease;
  color: white;
  background: rgba(255, 255, 255, 0.15);
  padding: 12px;
  border-radius: 10px;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.menu-toggle:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #10b981 100%);
  color: white;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="%23ffffff" opacity="0.1"><polygon points="1000,100 1000,0 0,100"/></svg>');
  background-size: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text h1 {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  color: #1e40af;
}

.hero-text p {
  font-size: 1.3em;
  margin-bottom: 30px;
  line-height: 1.6;
  opacity: 1;
  color: #1e293b;
  font-weight: 500;
}

.hero-image {
  text-align: center;
  background: #ffffff;
  border-radius: 24px;
  padding: 22px 0; /* espace blanc en haut et en bas */
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  transform: perspective(1000px) rotateY(-5deg);
  transition: transform 0.3s ease;
}

.hero-image img:hover {
  transform: perspective(1000px) rotateY(0deg);
}

@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-text h1 {
    font-size: 2.5em;
  }
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #1e40af, #3b82f6, #10b981);
  color: white;
  padding: 18px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  box-shadow: 0 15px 40px rgba(30, 64, 175, 0.4), 0 8px 20px rgba(16, 185, 129, 0.2);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cta-button::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: 0.5s;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-8px) scale(1.08);
  box-shadow: 0 25px 60px rgba(30, 64, 175, 0.5), 0 15px 30px rgba(16, 185, 129, 0.3);
  text-decoration: none;
  color: white;
}

/* Sections générales */
section {
  padding: 100px 5%;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

section:nth-child(even) {
  background: white;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--dark);
}

h2 {
  text-align: center;
  font-size: 2.8em;
  margin-bottom: 60px;
  position: relative;
  color: var(--dark);
}

h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient);
  border-radius: 2px;
}

/* Cards */
.card {
  background: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  margin-bottom: 30px;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Services Grid */
#services {
  padding: 80px 0;
  background: #f8fafc;
}

#services h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #1e293b;
  font-size: 2.5em;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.service-card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff6b35, #f7931e);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.service-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 20px;
}

.service-icon {
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: white;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2em;
  box-shadow: 0 10px 20px rgba(255, 107, 53, 0.3);
}

.service-content h3 {
  color: #1e293b;
  margin-bottom: 15px;
  font-size: 1.5em;
}

.service-content p {
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 20px;
}

.service-detail-btn {
  display: inline-block;
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: white;
  padding: 12px 24px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: auto;
}

.service-detail-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(255, 107, 53, 0.3);
  text-decoration: none;
  color: white;
}

.service-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0 30px 30px;
}

/* Contact Form */
.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  align-items: stretch;
}

.contact-details, .contact-form {
  background: white;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  flex: 1 1 400px;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.form-group label {
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 15px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  font-family: 'Poppins', sans-serif;
  transition: all 0.5s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  outline: none;
  background: white;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  transform: translateY(-2px);
}

button[type="submit"] {
  background: var(--gradient);
  color: white;
  border: none;
  padding: 15px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1em;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

button[type="submit"]:hover {
  box-shadow: 0 15px 30px rgba(37, 99, 235, 0.3);
  transform: translateY(-5px);
}

/* Footer */
footer {
  background: var(--dark);
  color: white;
  padding: 60px 5% 30px;
  position: relative;
  overflow: hidden;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.footer-column h3 {
  font-size: 1.3em;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
  color: white;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--gradient);
}

.footer-column p {
  color: var(--gray);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--gray);
  text-decoration: none;
  transition: all 0.5s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-links a:hover {
  color: white;
  transform: translateX(10px);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-links a:hover {
  background: var(--gradient);
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--gray);
  font-size: 0.9em;
}

.copyright {
  text-align: center;
  padding-top: 40px;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--gray);
  font-size: 0.9em;
  position: relative;
  z-index: 1;
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

@media (max-width: 1200px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  /* Categories responsive - 2x2 on mobile */
  .services-grid[style*="repeat(4, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
  }
}

@media (max-width: 480px) {
  /* Categories responsive - 1 column on very small screens */
  .services-grid[style*="repeat(4, 1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }
}

.blog-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.5s ease;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-content {
  padding: 25px;
}

.blog-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 0.9em;
  color: var(--gray);
}

.blog-title {
  font-size: 1.3em;
  margin-bottom: 15px;
  color: var(--dark);
}

.blog-excerpt {
  color: var(--dark);
  margin-bottom: 20px;
  line-height: 1.6;
}

.read-more {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s ease;
}

.read-more:hover {
  gap: 10px;
}

/* Logo */
.logo {
  font-size: 1.8em;
  font-weight: 700;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.logo img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.logo:hover {
  transform: scale(1.1);
  animation: bounce 0.6s;
}

.logo:hover img {
  transform: rotate(360deg);
  transition: transform 0.6s ease;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

/* Responsive */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.8em;
  }
  
  h2 {
    font-size: 2.4em;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    z-index: 1001;
  }

  nav ul {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.98), rgba(59, 130, 246, 0.98));
    backdrop-filter: blur(25px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 60px 25px;
    transition: right 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: -15px 0 40px rgba(0, 0, 0, 0.3);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
  }

  nav ul li a {
    color: white !important;
    font-size: 1.1em;
    font-weight: 500;
    padding: 16px 24px;
    margin: 8px 0;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block;
    width: 85%;
    text-align: center;
    text-decoration: none;
    letter-spacing: 0.5px;
  }

  nav ul li a:hover,
  nav ul li a.active {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
  }

  nav ul.active {
    right: 0;
  }

  .hero {
    height: auto;
    padding: 120px 5% 80px;
  }

  .hero h1 {
    font-size: 2.2em;
  }

  .hero p {
    font-size: 1em;
  }

  section {
    padding: 80px 5%;
  }

  .contact-details, .contact-form {
    padding: 30px;
  }
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.service-card {
  background: rgba(255, 255, 255, 0.95);
  padding: 0;
  border-radius: 25px;
  text-align: center;
  box-shadow: 0 15px 40px rgba(255, 107, 53, 0.1);
  transition: all 0.4s ease;
  border: 2px solid transparent;
  overflow: hidden;
  position: relative;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(135deg, #ff6b35, #f7931e, #1e40af, #3b82f6);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

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

.service-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 25px 50px rgba(255, 107, 53, 0.2);
  border: 2px solid #ff6b35;
}

.service-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: all 0.4s ease;
  filter: brightness(0.8);
}

.service-card:hover .service-image {
  transform: scale(1.1);
  filter: brightness(1);
}

/* About Section */
.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 40px;
}

.about-content h2 {
  text-align: left;
  margin-bottom: 30px;
}

.about-content p {
  text-align: left;
  font-size: 1.2em;
  line-height: 1.8;
  margin-bottom: 40px;
}

.about-image {
  position: relative;
  background: #ffffff;
  border-radius: 24px;
  padding: 22px 0; /* espace blanc en haut et en bas */
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(255, 107, 53, 0.2);
  transition: all 0.4s ease;
}

.about-image:hover img {
  transform: scale(1.05);
  box-shadow: 0 25px 50px rgba(255, 107, 53, 0.3);
}

/* Stats Section */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.stat-item {
  text-align: center;
  padding: 30px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(255, 107, 53, 0.1);
  transition: all 0.4s ease;
  border: 2px solid transparent;
  backdrop-filter: blur(10px);
}

.stat-item:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 25px 50px rgba(255, 107, 53, 0.2);
  border: 2px solid #ff6b35;
}

.stat-number {
  font-size: 3em;
  font-weight: 800;
  background: linear-gradient(135deg, #ff6b35, #1e40af);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 1.1em;
  color: #1e293b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Blog Styles */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.blog-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #e2e8f0;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.blog-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  font-size: 0.9em;
  color: #64748b;
}

.blog-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.blog-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #1e293b;
  line-height: 1.4;
}

.blog-excerpt {
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 20px;
}

.read-more {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  margin-top: auto;
}

.read-more:hover {
  color: #1d4ed8;
  gap: 12px;
}

.read-more i {
  transition: transform 0.3s ease;
}

.read-more:hover i {
  transform: translateX(5px);
}

/* Service Detail Styles */
.service-detail-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 40px;
}

.service-detail-content h2 {
  text-align: left;
  margin-bottom: 30px;
}

.service-detail-content p {
  text-align: left;
  font-size: 1.2em;
  line-height: 1.8;
  margin-bottom: 40px;
}

.service-detail-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 25px;
  box-shadow: 0 20px 40px rgba(255, 107, 53, 0.2);
  transition: all 0.4s ease;
}

.service-detail-image:hover img {
  transform: scale(1.05);
  box-shadow: 0 25px 50px rgba(255, 107, 53, 0.3);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.feature-item {
  text-align: center;
  padding: 30px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.1);
  transition: all 0.4s ease;
  border: 2px solid transparent;
}

.feature-item:hover {
  transform: translateY(-10px);
  border: 2px solid #ff6b35;
  box-shadow: 0 20px 40px rgba(255, 107, 53, 0.2);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #ff6b35, #1e40af);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
  font-size: 1.8em;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.process-step {
  text-align: center;
  padding: 40px 30px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 25px;
  box-shadow: 0 15px 40px rgba(255, 107, 53, 0.1);
  transition: all 0.4s ease;
  position: relative;
}

.process-step:hover {
  transform: translateY(-15px);
  box-shadow: 0 25px 50px rgba(255, 107, 53, 0.2);
}

.step-number {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #ff6b35, #1e40af);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  color: white;
  font-size: 2em;
  font-weight: bold;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.tech-item {
  text-align: center;
  padding: 30px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.1);
  transition: all 0.4s ease;
  border: 2px solid transparent;
}

.tech-item:hover {
  transform: translateY(-10px) scale(1.05);
  border: 2px solid #ff6b35;
  box-shadow: 0 20px 40px rgba(255, 107, 53, 0.2);
}

.tech-item i {
  font-size: 3em;
  background: linear-gradient(135deg, #ff6b35, #1e40af);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 15px;
  display: block;
}

.tech-item span {
  font-weight: 600;
  color: #1e293b;
  font-size: 1.1em;
}

@media (max-width: 768px) {
  .service-detail-container,
  .about-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .about-content h2,
  .service-detail-content h2 {
    text-align: center;
  }
  
  .about-content p,
  .service-detail-content p {
    text-align: center;
  }
}

/* Article Styles */
.article-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  margin-top: 40px;
}

.article-content {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 25px;
  padding: 40px;
  box-shadow: 0 15px 40px rgba(255, 107, 53, 0.1);
}

.article-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 30px;
  box-shadow: 0 15px 30px rgba(255, 107, 53, 0.2);
}

.article-text h2 {
  color: #1e293b;
  margin: 40px 0 20px 0;
  padding-bottom: 10px;
  border-bottom: 3px solid #ff6b35;
  display: inline-block;
}

.article-text h3 {
  color: #1e40af;
  margin: 30px 0 15px 0;
}

.article-text h4 {
  color: #ff6b35;
  margin: 25px 0 10px 0;
}

.article-text p {
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
}

.article-text ul {
  margin: 20px 0;
  padding-left: 30px;
}

.article-text li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.highlight-box {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(30, 64, 175, 0.1));
  border-left: 5px solid #ff6b35;
  padding: 30px;
  margin: 30px 0;
  border-radius: 15px;
}

.highlight-box h3 {
  color: #1e40af;
  margin-top: 0;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.tip-item {
  background: rgba(255, 255, 255, 0.95);
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.1);
  transition: all 0.4s ease;
  border: 2px solid transparent;
}

.tip-item:hover {
  transform: translateY(-10px);
  border: 2px solid #ff6b35;
  box-shadow: 0 20px 40px rgba(255, 107, 53, 0.2);
}

.tip-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #ff6b35, #1e40af);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
  font-size: 1.5em;
}

.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.author-box, .share-box {
  background: rgba(255, 255, 255, 0.95);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.1);
}

.author-box h3, .share-box h3 {
  color: #1e40af;
  margin-bottom: 20px;
  text-align: center;
}

.share-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.share-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.linkedin { background: #0077b5; }
.share-btn.whatsapp { background: #25d366; }

.share-btn:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.blog-meta {
  display: flex;
  gap: 20px;
  font-size: 0.9em;
  color: #64748b;
  margin-bottom: 15px;
}

.blog-meta i {
  margin-right: 8px;
  color: #ff6b35;
}

@media (max-width: 768px) {
  .article-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .article-content {
    padding: 30px 20px;
  }
  
  .tips-grid {
    grid-template-columns: 1fr;
  }
  
  .share-buttons {
    flex-wrap: wrap;
  }
}

@media (max-width: 576px) {
  .contact-details, .contact-form {
    padding: 20px;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================
   Chatbox TERANGA NUMÉRIQUE
============================ */
#tn-chatbox {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 2000;
  font-family: 'Poppins', sans-serif;
}

.tn-chat-toggle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #10b981);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.35), 0 6px 14px rgba(16, 185, 129, 0.2);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  position: relative;
  animation: tn-wiggle 8s infinite ease-in-out;
}

.tn-chat-toggle:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 16px 40px rgba(16, 185, 129, 0.35);
}

.tn-chat-toggle.hidden { display: none; }

.tn-chat-toggle::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(37,99,235,0.35), transparent);
  animation: tn-pulse 2s infinite;
}

@keyframes tn-pulse {
  0% { transform: scale(0.95); opacity: 0.6; }
  70% { transform: scale(1.05); opacity: 0.1; }
  100% { transform: scale(1); opacity: 0; }
}

@keyframes tn-wiggle {
  0%, 92%, 100% { transform: none; }
  94% { transform: rotate(-6deg) scale(1.02); }
  96% { transform: rotate(6deg) scale(1.02); }
  98% { transform: rotate(-3deg) scale(1.02); }
}

.tn-chat-panel {
  position: absolute;
  right: 0;
  bottom: 80px;
  width: 380px;
  height: 500px;
  background: rgba(255,255,255,0.95);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.2);
  transform: translateY(10px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  border: 1px solid #e2e8f0;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
}

.tn-chat-panel.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Overlay to make chat opening very clear */
.tn-chat-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.45); /* slate-950 alpha */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 1999;
}

.tn-chat-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.tn-chat-header {
  background: linear-gradient(135deg, #2563eb, #10b981);
  color: white;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  min-height: 60px;
}

.tn-chat-title {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tn-dot {
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(34,197,94,0.25);
}

.tn-chat-close {
  background: rgba(255,255,255,0.2);
  border: 0;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
}

.tn-chat-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.tn-chat-messages {
  padding: 14px;
  flex: 1;
  overflow-y: auto;
  background: #f8fafc;
  min-height: 200px;
}

.tn-msg {
  max-width: 80%;
  padding: 12px 14px;
  margin: 8px 0;
  border-radius: 16px;
  font-size: 0.95em;
  line-height: 1.4;
  box-shadow: 0 6px 14px rgba(0,0,0,0.06);
}

.tn-msg.bot {
  background: #ffffff;
  color: #0f172a;
}

.tn-msg.user {
  background: linear-gradient(135deg, #2563eb, #10b981);
  color: #fff;
  margin-left: auto;
}

.tn-quick-replies {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 10px 12px 6px 12px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.tn-quick-replies button {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.85em;
  color: #0f172a;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tn-quick-replies button:hover {
  background: #e6f7f1;
  border-color: #10b981;
  transform: translateY(-1px);
}

.tn-chat-input {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid #e2e8f0;
  background: #fff;
  flex-shrink: 0;
}

.tn-chat-input input[type="text"] {
  flex: 1;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 10px;
  padding: 10px 12px;
}

.tn-chat-input button[type="submit"] {
  width: 42px;
  background: linear-gradient(135deg, #2563eb, #10b981);
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

@media (max-width: 480px) {
  .tn-chat-panel { 
    width: 95vw; 
    right: -10px; 
    border-radius: 16px;
    height: 70vh;
    max-height: 500px;
  }
}

/* Chat attention elements */
.tn-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  background: #ef4444; /* red */
  color: #fff;
  font-size: 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.4);
}

.tn-chat-label {
  position: absolute;
  right: 76px;
  bottom: 8px;
  background: #fff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  padding: 10px 14px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.tn-chat-label:hover {
  background: #f8fafc;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.16);
}

.tn-chat-label.hidden { display: none; }
