.hero-2 .single-slide .hero-contents .h1 {
  color: #fff;
  font-size: 90px;
  font-weight: 900;
  line-height: 110%;
  margin-top: -10px;
  text-transform: capitalize;
}

/* Appliquer les mêmes styles H1 au H2 dans le slider hero */
.hero-2 .single-slide .hero-contents h2 {
  color: #fff;
  font-size: 90px;
  font-weight: 900;
  line-height: 110%;
  margin-top: -10px;
  text-transform: capitalize;
}

@media (max-width: 1600px) {
  .hero-2 .single-slide .hero-contents h2 {
  
    font-size: 70px;
  }
}
@media (max-width: 767px) {
  .hero-2 .single-slide .hero-contents h2 {
    font-size: 50px;
  }
}
@media (max-width: 500px) {
  .hero-2 .single-slide .hero-contents h2 {
    font-size: 42px;
  }
}
@media (max-width: 375px) {
  .hero-2 .single-slide .hero-contents h2 {
    font-size: 40px;
  }
}

/* ================================================
   BLOG — Grid des articles
   ================================================ */
.blog-wrapper {
  background: #f9f9f9;
}

.single-blog-post {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(0,0,0,.07);
  margin-bottom: 30px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.single-blog-post:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
}

.blog-wrapper .single-blog-post .post-featured-thumb {
  height: 180px;
  width: 100%;
  overflow: hidden;
}

.post-featured-thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

/* Image principale portfolio-detail : pleine hauteur, pas compressée */
.post-details .post-featured-thumb {
  height: auto;
  overflow: visible;
}
.post-details .post-featured-thumb img {
  height: 420px;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.post-content {
  padding: 24px;
}

.post-cat {
  margin-bottom: 10px;
}

.blog-tag {
  display: inline-block;
  background: #0d6efd;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin-right: 4px;
  margin-bottom: 4px;
}

.post-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
  height: 50px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.post-title a {
  color: #222;
  text-decoration: none;
}
.post-title a:hover {
  color: #0d6efd;
}

.post-excerpt {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  height: 65px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.post-meta {
  font-size: 13px;
  color: #999;
  gap: 14px;
}
.post-meta i {
  margin-right: 5px;
}

.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #0d6efd;
  text-decoration: none;
}
.read-more-btn:hover {
  color: #0a58ca;
}

/* ================================================
   PORTFOLIO STYLES
   ================================================ */

.single-portfolio-item .portfolio-tech-tag {
  background: #14b8a6;
}

.single-portfolio-item .project-link {
  color: #14b8a6;
  font-size: 18px;
  transition: color 0.3s ease, transform 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(20, 184, 166, 0.1);
}

.single-portfolio-item .project-link:hover {
  color: #0d9488;
  transform: scale(1.1);
  background: rgba(20, 184, 166, 0.2);
}

.single-portfolio-item .project-type {
  color: #666;
  font-size: 13px;
  font-weight: 500;
}

.single-portfolio-item .project-type i {
  color: #14b8a6;
}

.project-description {
  line-height: 1.8;
  color: #333;
}

.project-description h2 {
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 24px;
  font-weight: 700;
  color: #222;
  letter-spacing: normal;
}

.project-description h3 {
  margin-top: 25px;
  margin-bottom: 12px;
  font-size: 20px;
  font-weight: 600;
  color: #333;
}

.project-description ul,
.project-description ol {
  margin: 15px 0;
  padding-left: 30px;
}

.project-description li {
  margin-bottom: 8px;
}

.project-description img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.project-description code {
  background: #f5f5f5;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 90%;
}

.project-description pre {
  background: #f5f5f5;
  padding: 15px;
  border-radius: 5px;
  overflow-x: auto;
  margin: 15px 0;
}

.project-description strong {
  color: #14b8a6;
  font-weight: 600;
}

/* ================================================
   BLOG DETAIL — Article complet
   ================================================ */
.blog-detail-wrapper {
  background: #fff;
}

.blog-post-featured-img img {
  border-radius: 8px;
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center top;
}

.blog-post-meta {
  font-size: 14px;
  color: #777;
}
.blog-post-meta i {
  margin-right: 5px;
  color: #0d6efd;
}

/* Contenu Markdown rendu */
.blog-post-content h1,
.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4 {
  margin-top: 32px;
  margin-bottom: 14px;
  font-weight: 700;
  color: #1a1a2e;
}
.blog-post-content h1 { 
  font-size: 28px;
  letter-spacing: 0.3px;
  line-height: 1.4;
}
.blog-post-content h2 { 
  font-size: 23px;
  letter-spacing: 0.5px;
  line-height: 1.65;
  margin-bottom: 18px;
}
.blog-post-content h3 { font-size: 19px; }
.blog-post-content p  { margin-bottom: 16px; line-height: 1.8; color: #444; }
.blog-post-content ul,
.blog-post-content ol { padding-left: 22px; margin-bottom: 16px; color: #444; }
.blog-post-content li { margin-bottom: 6px; line-height: 1.7; }
.blog-post-content a  { color: #0d6efd; }
.blog-post-content a:hover { text-decoration: underline; }
.blog-post-content img {
  max-width: 100%;
  border-radius: 6px;
  margin: 20px 0;
  height: auto;
}
.blog-post-content blockquote {
  border-left: 4px solid #0d6efd;
  padding: 12px 20px;
  background: #f0f5ff;
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: #555;
  margin: 20px 0;
}
.blog-post-content code {
  background: #f4f4f4;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 90%;
}
.blog-post-content pre {
  background: #1e1e2e;
  color: #cdd6f4;
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 20px 0;
}
.blog-post-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* Vidéo embarquée */
.blog-video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  margin: 24px 0;
}
.blog-video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

/* Instagram embarquée */
.blog-instagram-wrapper {
  max-width: 540px;
  margin: 24px auto;
  border-radius: 8px;
  overflow: hidden;
}
.blog-instagram-wrapper iframe {
  width: 100%;
  min-height: 500px;
  border: none;
  display: block;
}

/* Partage */
.post-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.share-label {
  font-weight: 600;
  color: #444;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .2s;
}
.share-btn:hover { opacity: .85; }
.share-linkedin { background: #0077b5; color: #fff; }
.share-twitter  { background: #000; color: #fff; }

/* Sidebar */
.blog-sidebar .blog-widget {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 24px;
}
.blog-sidebar .widget-title h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #0d6efd;
  color: #1a1a2e;
}
.blog-sidebar .author-info h5 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.blog-sidebar .author-info p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}
.blog-sidebar .cta-widget {
  background: linear-gradient(135deg, #0d6efd, #0a58ca);
  color: #fff;
}
.blog-sidebar .cta-widget h4 {
  color: #fff;
  border-bottom-color: rgba(255,255,255,.4);
}
.blog-sidebar .cta-widget p {
  color: rgba(255,255,255,.9);
  font-size: 14px;
}
.small-btn {
  padding: 8px 18px;
  font-size: 13px;
}

/* ================================================
   Améliorations titres - espacement uniquement
   ================================================ */

/* H1 principal de page - meilleur espacement vertical */
.page-title h1 {
  line-height: 1.45 !important;
}

@media (max-width: 767px) {
  .page-title h1 {
    font-size: 32px !important;
    line-height: 1.4 !important;
  }
}

@media (max-width: 500px) {
  .page-title h1 {
    font-size: 26px !important;
    line-height: 1.45 !important;
  }
}

/* ================================================
   Menu et header - Bleu moderne
   ================================================ */
/* Bande haute du header */
.top-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

/* Liens dans la bande haute */
.top-header a {
  color: rgba(255,255,255,0.95) !important;
}

.top-header a:hover {
  color: #ffffff !important;
}

/* Zone menu principale */
.header-2 .main-header-wraper {
  background: #ffffff !important;
  box-shadow: 0 2px 10px rgba(102, 126, 234, 0.1) !important;
}

/* Liens du menu */
.main-menu ul li a {
  color: #1a202c !important;
  font-weight: 500;
}

.main-menu ul li a:hover {
  color: #667eea !important;
}

/* Bouton contact */
.theme-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: #ffffff !important;
  border: none !important;
  font-weight: 600 !important;
}

.theme-btn:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4) !important;
}

/* Sous-menu */
.main-menu ul li .sub-menu {
  border-top: 3px solid #667eea !important;
}

.main-menu ul li .sub-menu li a {
  color: #ffffff !important;
}

.main-menu ul li .sub-menu li a:hover {
  background: rgba(102, 126, 234, 0.1) !important;
  color: #667eea !important;
}

/* Cartes de service - Effet hover */
.service-card {
  transition: all 0.3s ease !important;
}

.service-card:hover {
  border-color: #667eea !important;
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2) !important;
}

.service-card:hover .icon {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

/* Liens dans les cartes de service */
.service-card a {
  color: #1a202c !important;
  text-decoration: none;
}

.service-card:hover a {
  color: #667eea !important;
}

.service-card h3 a:hover {
  color: inherit !important;
}

/* Technologies section */
.tech-logos {
    gap: 2rem;
}

.tech-item {
    text-align: center;
    transition: all 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-5px);
}

.tech-item i {
    transition: all 0.3s ease;
}

.tech-item:hover i {
    transform: scale(1.1);
}

