/*
Theme Name: Batop Partners
Theme URI: https://batop-partners.com
Author: Votre nom
Author URI: https://votresite.com
Description: Thème WordPress sur mesure pour entreprise BTP - inspiré de Batop & Partners. Sections Hero, Services, À propos, Témoignages, Blog, Contact avec animations.
Version: 1.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: batop-partners
*/

/* ==========================================================================
   VARIABLES CSS
   ========================================================================== */
:root {
  --color-primary: #1B2A5E;
  --color-primary-hover: #131F45;
  --color-primary-light: #2A3D7A;
  --color-secondary: #D4B826;
  --color-secondary-hover: #B89A1C;
  --color-secondary-light: #E8D158;
  --color-blue-dark: #0D1730;
  --color-blue-dark-hover: #060B18;
  --color-blue-dark-light: #16224A;
  --color-dark: #1a1a1a;
  --color-gray-dark: #2c2c2c;
  --color-gray: #6b6b6b;
  --color-light: #f7f7f7;
  --color-white: #ffffff;

  --font-heading: 'Poppins', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;

  --radius: 8px;
  --transition: 0.3s ease;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);

  --container-width: 1200px;
}

/* ==========================================================================
   RESET
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-gray-dark);
  line-height: 1.6;
  background: var(--color-white);
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-dark);
  margin: 0 0 20px;
  line-height: 1.3;
}
p { margin: 0 0 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-dark); }
ul { margin: 0; padding: 0; list-style: none; }
button { cursor: pointer; font-family: var(--font-body); }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}
.section { padding: 90px 0; }
.section-light { background: var(--color-light); }
.section-dark { background: var(--color-dark); color: var(--color-white); }
.section-dark h2, .section-dark h3 { color: var(--color-white); }

.section-header { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.section-header .tagline {
  display: inline-block;
  color: var(--color-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 14px;
  margin-bottom: 12px;
}
.section-header h2 { font-size: 38px; }
.section-header p { color: var(--color-gray); }

/* ==========================================================================
   BOUTONS
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.5px;
  transition: all var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
}
.btn-primary:hover {
  background: var(--color-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.btn-outline {
  background: transparent;
  border-color: var(--color-white);
  color: var(--color-white);
}
.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-dark);
}
.btn-outline-dark {
  background: transparent;
  border-color: var(--color-dark);
  color: var(--color-dark);
}
.btn-outline-dark:hover {
  background: var(--color-dark);
  color: var(--color-white);
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  width: 100%;
  z-index: 999;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
  padding: 0px 0;
}
.site-header.scrolled {
  background: var(--color-white);
  box-shadow: 0 2px 15px rgba(0,0,0,0.1);
  padding: 12px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo img { max-height: 48px; }
.site-logo a {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-white);
  transition: color var(--transition);
}
.site-header.scrolled .site-logo a { color: var(--color-dark); }

.main-nav ul { display: flex; gap: 34px; align-items: center; }
.main-nav a {
  color: var(--color-white);
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  padding: 6px 0;
  transition: color var(--transition);
}
.site-header.scrolled .main-nav a { color: var(--color-dark); }
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--color-primary);
  transition: width var(--transition);
}
.main-nav a:hover::after,
.main-nav a.current::after { width: 100%; }
.main-nav a:hover { color: var(--color-primary); }

.header-cta { display: flex; align-items: center; gap: 20px; }
.header-cta .btn { padding: 12px 24px; font-size: 13px; }

/* Menu mobile (hamburger) */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  z-index: 1001;
}
.menu-toggle span {
  width: 26px; height: 3px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all var(--transition);
}
.site-header.scrolled .menu-toggle span { background: var(--color-dark); }
.menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(20,20,20,0.85), rgba(20,20,20,0.6)), var(--hero-bg, url('assets/images/hero-bg.jpg')) center/cover no-repeat;
  color: var(--color-white);
}
.hero-content { max-width: 720px; }
.hero .tagline {
  display: inline-block;
  background: var(--color-primary);
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.1s;
}
.hero h1 {
  font-size: 56px;
  color: var(--color-white);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.3s;
}
.hero p {
  font-size: 18px;
  color: #d8d8d8;
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.5s;
}
.hero-buttons {
  display: flex;
  gap: 18px;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.7s;
}
.hero-scroll {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  color: var(--color-white);
  text-align: center;
  font-size: 12px;
  animation: bounce 2s infinite;
}
.hero-scroll span {
  display: block;
  width: 22px; height: 36px;
  border: 2px solid var(--color-white);
  border-radius: 20px;
  margin: 8px auto 0;
  position: relative;
}
.hero-scroll span::before {
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  width: 4px; height: 8px;
  background: var(--color-white);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollDot 1.5s infinite;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -10px); }
}
@keyframes scrollDot {
  0% { top: 6px; opacity: 1; }
  100% { top: 20px; opacity: 0; }
}

/* ==========================================================================
   ANIMATIONS SCROLL REVEAL (JS toggle classes)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-50px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal-left.active { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(50px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal-right.active { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(0.85); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal-scale.active { opacity: 1; transform: scale(1); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.25s; }
.delay-3 { transition-delay: 0.4s; }
.delay-4 { transition-delay: 0.55s; }
.delay-5 { transition-delay: 0.7s; }

/* --- Footer / signature --- */
.about-footer {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.about-signature {
  display: flex;
  align-items: center;
  gap: 12px;
}
.about-signature .ceo-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}
.about-signature strong {
  display: block;
  font-size: 15px;
}
.about-signature span {
  font-size: 13px;
  color: var(--color-gray);
}

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.service-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 40px 30px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid transparent;
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-bottom-color: var(--color-primary);
}
.service-card .icon-wrap {
  width: 64px; height: 64px;
  background: rgba(224,123,0,0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 28px;
  color: var(--color-primary);
  transition: all var(--transition);
}
.service-card:hover .icon-wrap {
  background: var(--color-primary);
  color: var(--color-white);
  transform: rotate(10deg) scale(1.1);
}
.service-card h3 { font-size: 21px; margin-bottom: 12px; }
.service-card p { color: var(--color-gray); font-size: 15px; margin-bottom: 0; }
.service-card .num {
  position: absolute;
  top: 20px; right: 25px;
  font-size: 46px;
  font-weight: 700;
  color: rgba(0,0,0,0.05);
  font-family: var(--font-heading);
}

/* ==========================================================================
   WHY CHOOSE US
   ========================================================================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.why-item {
  text-align: center;
  padding: 30px 20px;
}
.why-item .icon-circle {
  width: 90px; height: 90px;
  border: 2px solid var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 32px;
  color: var(--color-primary);
  transition: all var(--transition);
}
.why-item:hover .icon-circle {
  background: var(--color-primary);
  color: var(--color-white);
  transform: scale(1.1);
}
.why-item h3 { font-size: 18px; }
.why-item p { color: var(--color-gray); font-size: 14px; }

/* ==========================================================================
   TESTIMONIALS SLIDER
   ========================================================================== */
.testimonials-slider {
  position: relative;
  /*max-width: 800px;*/
  margin: 0 auto;
  overflow: hidden;
  /*background: var(--color-blue-dark);*/
}
.testimonial-track {
  display: flex;
  transition: transform 0.6s ease;
}
.testimonial-slide {
  flex: 0 0 100%;
  text-align: center;
  padding: 20px 40px;
}
.testimonial-slide .quote-icon {
  font-size: 40px;
  color: var(--color-primary);
  margin-bottom: 20px;
}
.testimonial-slide p.text {
  font-size: 19px;
  font-style: italic;
  color: var(--color-white);
  margin-bottom: 24px;
}
.testimonial-slide .author img {
  width: 60px; height: 60px;
  border-radius: 50%;
  margin: 0 auto 10px;
  border: 3px solid var(--color-primary);
}
.testimonial-slide .author .name { font-weight: 700; color: var(--color-white); }
.testimonial-slide .author .role { font-size: 13px; color: #ccc; }

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}
.slider-dots button {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: none;
  transition: all var(--transition);
}
.slider-dots button.active {
  background: var(--color-primary);
  width: 28px;
  border-radius: 5px;
}

/* ==========================================================================
   BLOG
   ========================================================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.blog-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.blog-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.blog-card .thumb { overflow: hidden; height: 220px; }
.blog-card .thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.blog-card:hover .thumb img { transform: scale(1.1); }
.blog-card .content { padding: 26px; }
.blog-card .meta {
  font-size: 12px;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  font-weight: 600;
}
.blog-card h3 { font-size: 19px; margin-bottom: 12px; }
.blog-card h3 a { color: var(--color-dark); }
.blog-card h3 a:hover { color: var(--color-primary); }
.blog-card p { color: var(--color-gray); font-size: 14px; }
.blog-card .read-more {
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  color: var(--color-primary);
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
}
.contact-info-item {
  display: flex;
  gap: 18px;
  margin-bottom: 30px;
  align-items: flex-start;
}
.contact-info-item .icon {
  width: 50px; height: 50px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-item h4 { margin-bottom: 4px; font-size: 16px; }
.contact-info-item p { margin: 0; color: var(--color-gray); }

.contact-form { background: var(--color-white); padding: 40px; border-radius: var(--radius); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 14px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border var(--transition);
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}
.form-group textarea { resize: vertical; min-height: 130px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--color-blue-dark); color: #bbb; padding-top: 80px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col h4 { color: var(--color-white); font-size: 17px; margin-bottom: 22px; }
.footer-logo { font-family: var(--font-heading); font-size: 24px; color: var(--color-white); font-weight: 700; margin-bottom: 16px; display: inline-block; }
.footer-col p { font-size: 14px; line-height: 1.7; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #bbb; font-size: 14px; transition: color var(--transition), padding var(--transition); }
.footer-links a:hover { color: var(--color-primary); padding-left: 5px; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--color-primary); transform: translateY(-4px); }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 16px; font-size: 14px; align-items: flex-start; }
.footer-bottom {
  padding: 25px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.footer-bottom a { color: #bbb; }
.footer-bottom-links { display: flex; gap: 20px; }

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 30px; right: 30px;
  width: 48px; height: 48px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 998;
  border: none;
  font-size: 18px;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--color-dark); }

/* ==========================================================================
   PAGE HEADER (pages internes)
   ========================================================================== */
.page-banner {
  background: linear-gradient(135deg, rgba(20,20,20,0.85), rgba(20,20,20,0.7)), url('assets/images/page-banner.jpg') center/cover no-repeat;
  padding: 180px 0 80px;
  color: var(--color-white);
  text-align: center;
}
.page-banner h1 { color: var(--color-white); font-size: 42px; margin-bottom: 10px; }
.breadcrumb { font-size: 14px; }
.breadcrumb a { color: #ccc; }
.breadcrumb span { color: var(--color-primary); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 992px) {
  .about-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .main-nav { position: fixed; top: 0; right: -300px; width: 280px; height: 100vh; background: var(--color-white); flex-direction: column; padding: 100px 30px 30px; transition: right var(--transition); box-shadow: -5px 0 20px rgba(0,0,0,0.1); }
  .main-nav.active { right: 0; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 22px; }
  .main-nav a { color: var(--color-dark); }
  .menu-toggle { display: flex; }
  .header-cta .btn-text-hide { display: none; }
  .hero h1 { font-size: 36px; }
  .hero p { font-size: 16px; }
  .services-grid, .why-grid, .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .about-image .exp-badge { position: static; margin-top: -60px; margin-left: 20px; display: inline-block; }
}

/* ==========================================================================
   TOP BAR
   ========================================================================== */
.top-bar {
  background: var(--color-blue-dark);
  color: #ccc;
  font-size: 13px;
  padding: 8px 0;
}
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.top-bar-contacts { display: flex; gap: 20px; flex-wrap: wrap; }
.top-bar-contacts a { color: #ccc; }
.top-bar-contacts a:hover { color: var(--color-primary); }
.top-bar-contacts i { color: var(--color-primary); margin-right: 5px; }
.top-bar-social { display: flex; gap: 10px; }
.top-bar-social a {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: #ccc;
  transition: var(--transition);
}
.top-bar-social a:hover { background: var(--color-primary); color: #fff; }

/* ==========================================================================
   HEADER PRINCIPAL
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--color-white);
  box-shadow: 0 2px 15px rgba(0,0,0,0.06);
  z-index: 999;
  transition: all var(--transition);
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.12); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
}
.site-logo img { max-height: 55px; width: auto; }
.site-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-dark);
}
.site-title span { color: var(--color-primary); }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 32px;
}
.main-nav a {
  color: var(--color-dark);
  font-weight: 500;
  font-size: 15px;
  position: relative;
  padding: 6px 0;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--color-primary);
  transition: width var(--transition);
}
.main-nav a:hover::after,
.main-nav .current-menu-item a::after { width: 100%; }
.main-nav .current-menu-item a { color: var(--color-primary); }

/* Sous-menus */
.main-nav li { position: relative; }
.main-nav ul ul {
  position: absolute;
  top: 100%; left: 0;
  background: var(--color-white);
  min-width: 220px;
  flex-direction: column;
  gap: 0;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  padding: 10px 0;
  z-index: 10;
}
.main-nav li:hover > ul { opacity: 1; visibility: visible; transform: translateY(0); }
.main-nav ul ul li { width: 100%; }
.main-nav ul ul a { display: block; padding: 10px 20px; }
.main-nav ul ul a::after { display: none; }

.header-cta {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Bouton hamburger (mobile) */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  z-index: 1001;
}
.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--color-dark);
  border-radius: 3px;
  transition: var(--transition);
}
.menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.menu-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  opacity: 0; visibility: hidden;
  transition: var(--transition);
  z-index: 997;
}
.menu-overlay.active { opacity: 1; visibility: visible; }

/* ==========================================================================
   PRE-FOOTER CTA
   ========================================================================== */
.pre-footer-cta {
  background: linear-gradient(135deg, var(--color-primary), var(--color-blue-dark));
  padding: 50px 0;
}
.pre-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.pre-footer-text h3 { color: #fff; font-size: 28px; margin-bottom: 8px; }
.pre-footer-text p { color: rgba(255,255,255,0.9); margin: 0; }
.btn-lg { padding: 16px 32px; font-size: 16px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--color-blue-dark);
  color: #999;
  padding: 70px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 50px;
}
.footer-logo img { max-height: 50px; margin-bottom: 20px; }
.footer-logo-text {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
}
.footer-col p { font-size: 14px; line-height: 1.8; }
.footer-col h4 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 12px;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 40px; height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
}
.footer-menu { display: flex; flex-direction: column; gap: 12px; }
.footer-menu a { color: #999; font-size: 14px; transition: var(--transition); position: relative; padding-left: 0; }
.footer-menu a:hover { color: var(--color-primary); padding-left: 5px; }

.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  color: #fff;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--color-primary); transform: translateY(-3px); }

.footer-contact-list { display: flex; flex-direction: column; gap: 16px; }
.footer-contact-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: #ccc; }
.footer-contact-list i { color: var(--color-primary); margin-top: 3px; }
.footer-contact-list a { color: #ccc; }
.footer-contact-list a:hover { color: var(--color-primary); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 22px 0;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.footer-bottom a { color: var(--color-primary); }

/* ==========================================================================
   BACK TO TOP
   ========================================================================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px; height: 50px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 998;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--color-dark); transform: translateY(-5px); }

.spinner-small {
    display: inline-block;
    width: 14px; height: 14px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-right: 6px;
}
.form-group.has-error input,
.form-group.has-error textarea,
.form-group.has-error select {
    border-color: #dc3545 !important;
}

/* ===================================================================
   HERO SLIDER - OVERLAY POUR LISIBILITÉ DU TEXTE
   =================================================================== */
.hero-slide-bg {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide-bg .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(13, 23, 48, 0.85) 0%,
        rgba(27, 42, 94, 0.6) 50%,
        rgba(13, 23, 48, 0.4) 100%
    );
    z-index: 1;
}

/* Overlay supplémentaire en bas pour les boutons/texte */
.hero-slide-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Renforcement du texte avec text-shadow */
.hero-content h1 {
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.6), 0 4px 30px rgba(0, 0, 0, 0.4);
}

.hero-content p {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    color: #f0f0f0;
}

.hero-badge {
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.projects-section {
    padding: 100px 0;
    background: var(--color-primary, #1B2A5E);
}
.projects-section .text-light { color: #fff; }
.projects-section .text-light-muted { color: rgba(255,255,255,0.7); }

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}
.project-card {
    position: relative;
    border-radius: var(--radius, 10px);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow, 0 10px 30px rgba(0,0,0,0.15));
}
.project-card-image {
    display: block;
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}
.project-card-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.project-card:hover .project-card-image img { transform: scale(1.08); }

.project-card-overlay {
    position: absolute; inset: 0;
    background: rgba(13,23,48,0.5);
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.project-card:hover .project-card-overlay { opacity: 1; }
.project-card-zoom {
    width: 50px; height: 50px;
    border-radius: 50%;
    background: var(--color-secondary, #D4B826);
    color: #1B2A5E;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
}

.project-card-content { padding: 20px; }
.project-card-cat {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-secondary, #D4B826);
    font-weight: 700;
}
.project-card-content h3 { margin-top: 8px; font-size: 18px; }
.project-card-content h3 a { color: var(--color-primary, #1B2A5E); }

.projects-cta { margin-top: 50px; }

@media (max-width: 992px) {
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .projects-grid { grid-template-columns: 1fr; }
}
/* ==========================================================================
   TEMPLATES - GENERAL STYLES
   ========================================================================== */

.site-main {
    min-height: 100vh;
}

/* --- HERO SECTIONS --- */
.hero-section {
    background: linear-gradient(135deg, var(--batop-dark) 0%, var(--batop-primary) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 60px;
}

.hero-section h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-section p {
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

.hero-section .project-categories {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.project-cat {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.blog-meta-header {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: wrap;
    font-size: 0.95rem;
    opacity: 0.9;
}

/* ==========================================================================
   ARCHIVE SERVICES
   ========================================================================== */

.services-section {
    padding: 60px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.service-card-image {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
}

.service-card-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--batop-dark);
}

.service-card-content p {
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
    line-height: 1.6;
}

.service-card-content .btn {
    align-self: flex-start;
}

/* ==========================================================================
   ARCHIVE PROJETS
   ========================================================================== */

.projects-section {
    padding: 60px 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.project-card-image {
    width: 100%;
    height: 280px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.project-card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-card-image::after {
    opacity: 1;
}

.project-card-content {
    padding: 30px;
}

.project-card-content h3 {
    font-size: 1.3rem;
    margin: 15px 0;
    color: var(--batop-dark);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--batop-primary);
    text-decoration: none;
    font-weight: 600;
    transition: gap 0.3s ease;
    margin-top: 10px;
}

.project-link:hover span {
    transform: translateX(3px);
}

.project-link span {
    transition: transform 0.3s ease;
}

/* ==========================================================================
   ARCHIVE BLOG
   ========================================================================== */

.blog-section {
    padding: 60px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.blog-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.blog-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 10px;
}

.blog-date {
    color: var(--batop-primary);
    font-weight: 600;
}

.blog-card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--batop-dark);
    line-height: 1.4;
}

.blog-card-content p {
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
    line-height: 1.6;
}

/* ==========================================================================
   SINGLE SERVICE
   ========================================================================== */

.single-service-content {
    padding: 60px 0;
}

.single-service-featured-image {
    width: 100%;
    height: 500px;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 60px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.single-service-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-service-main {
    max-width: 1000px;
    margin-bottom: 60px;
    line-height: 1.8;
    color: #333;
    font-size: 1.05rem;
}

.single-service-main h2 {
    font-size: 2rem;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--batop-dark);
}

.single-service-main h3 {
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--batop-primary);
}

.single-service-main p {
    margin-bottom: 15px;
}

.single-service-main ul,
.single-service-main ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.single-service-main li {
    margin-bottom: 10px;
}

/* Service Benefits */
.service-benefits {
    background: #f8f9fa;
    padding: 60px 40px;
    border-radius: var(--radius);
    margin-bottom: 60px;
}

.service-benefits h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    text-align: center;
    color: var(--batop-dark);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.benefit-item {
    text-align: center;
}

.benefit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--batop-primary);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.benefit-item h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--batop-dark);
}

.benefit-item p {
    color: #666;
    line-height: 1.6;
}

/* Service CTA */
.service-cta-section {
    margin-bottom: 60px;
}

.cta-box-large {
    background: linear-gradient(135deg, var(--batop-primary) 0%, var(--batop-dark) 100%);
    color: white;
    padding: 60px 40px;
    border-radius: var(--radius);
    text-align: center;
}

.cta-box-large h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: white;
}

.cta-box-large p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.05rem;
}

/* Related Services */
.related-services-section {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid #eee;
}

.related-services-section h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    text-align: center;
    color: var(--batop-dark);
}

/* ==========================================================================
   SINGLE PROJECT
   ========================================================================== */

.single-project-content {
    padding: 60px 0;
}

.single-project-featured-image {
    width: 100%;
    height: 600px;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 60px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.single-project-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-content-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 50px;
    margin-bottom: 80px;
}

.project-content-main {
    line-height: 1.8;
    color: #333;
    font-size: 1.05rem;
}

.project-content-main h2 {
    font-size: 2rem;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--batop-dark);
}

.project-content-main h3 {
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--batop-primary);
}

.project-content-main p {
    margin-bottom: 15px;
}

/* Project Infos Sidebar */
.project-infos-sticky {
    position: sticky;
    top: 30px;
    height: fit-content;
}

.infos-box {
    background: #f8f9fa;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.infos-box h3 {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: var(--batop-dark);
    border-bottom: 2px solid var(--batop-primary);
    padding-bottom: 15px;
}

.info-item {
    margin-bottom: 25px;
}

.info-item label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--batop-primary);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.info-item p {
    color: #333;
    line-height: 1.6;
}

.sidebar-cta {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #ddd;
}

.btn-block {
    width: 100%;
    display: block;
    text-align: center;
}

/* Related Projects */
.related-projects-section {
    background: #f8f9fa;
    padding: 80px 0;
    margin-top: 80px;
}

.related-projects-section h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    text-align: center;
    color: var(--batop-dark);
}

/* ==========================================================================
   SINGLE BLOG POST
   ========================================================================== */

.single-blog-content {
    padding: 60px 0;
}

.single-blog-featured-image {
    width: 100%;
    height: 500px;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 60px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.single-blog-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-content-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 50px;
    margin-bottom: 80px;
}

.blog-content-main {
    line-height: 1.8;
    color: #333;
    font-size: 1.05rem;
}

.blog-content-main h2 {
    font-size: 2rem;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--batop-dark);
}

.blog-content-main h3 {
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--batop-primary);
}

.blog-content-main p {
    margin-bottom: 15px;
}

.blog-content-main blockquote {
    margin: 30px 0;
    padding: 20px;
    border-left: 4px solid var(--batop-primary);
    background: #f8f9fa;
    font-style: italic;
    color: #666;
}

.blog-content-main pre {
    background: #1e1e1e;
    color: #e0e0e0;
    padding: 20px;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 20px 0;
}

.blog-content-main code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
}

.blog-content-main pre code {
    background: none;
    padding: 0;
}

/* Blog Tags */
.blog-tags {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.blog-tag {
    display: inline-block;
    background: #f0f0f0;
    padding: 8px 16px;
    border-radius: 20px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.blog-tag:hover {
    background: var(--batop-primary);
    color: white;
}

/* Share Buttons */
.blog-share {
    background: #f8f9fa;
    padding: 30px;
    border-radius: var(--radius);
    margin-top: 40px;
}

.blog-share h4 {
    margin-bottom: 15px;
    color: var(--batop-dark);
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.share-facebook {
    background: #3b5998;
}

.share-twitter {
    background: #1DA1F2;
}

.share-linkedin {
    background: #0077b5;
}

.share-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Blog Sidebar */
.blog-sidebar {
    position: sticky;
    top: 30px;
    height: fit-content;
}

.sidebar-box {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.sidebar-box h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--batop-dark);
    border-bottom: 2px solid var(--batop-primary);
    padding-bottom: 12px;
}

.sidebar-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-box ul li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.sidebar-box ul li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-box ul a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sidebar-box ul a:hover {
    color: var(--batop-primary);
}

.author-box {
    text-align: center;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 3px solid var(--batop-primary);
}

.author-info p {
    color: #666;
    line-height: 1.6;
}

.sidebar-cta {
    background: linear-gradient(135deg, var(--batop-primary) 0%, var(--batop-dark) 100%);
    color: white;
    padding: 30px;
    border-radius: var(--radius);
}

.sidebar-cta h4 {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.sidebar-cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* Post Navigation */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding-top: 40px;
    border-top: 1px solid #eee;
    margin-top: 40px;
}

.nav-previous,
.nav-next {
    padding: 20px;
    border-radius: var(--radius);
    background: #f8f9fa;
}

.nav-previous a,
.nav-next a {
    color: var(--batop-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-previous a:hover,
.nav-next a:hover {
    color: var(--batop-dark);
}

/* Recent Posts */
.recent-posts-section {
    padding: 80px 0;
    background: #f8f9fa;
    margin-top: 80px;
}

.recent-posts-section h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    text-align: center;
    color: var(--batop-dark);
}

/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */

.contact-section {
    padding: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.contact-form-wrapper {
    background: white;
}

.contact-form-wrapper h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--batop-dark);
}

/* Contact Form 7 Styles */
.contact-form-wrapper .wpcf7-form {
    display: grid;
    gap: 20px;
}

.contact-form-wrapper .wpcf7-form-control {
    width: 100%;
}

.contact-form-wrapper input[type="text"],
.contact-form-wrapper input[type="email"],
.contact-form-wrapper input[type="tel"],
.contact-form-wrapper textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form-wrapper input[type="text"]:focus,
.contact-form-wrapper input[type="email"]:focus,
.contact-form-wrapper input[type="tel"]:focus,
.contact-form-wrapper textarea:focus {
    outline: none;
    border-color: var(--batop-primary);
    box-shadow: 0 0 0 3px rgba(var(--batop-primary-rgb), 0.1);
}

.contact-form-wrapper textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form-wrapper .wpcf7-submit {
    background: var(--batop-primary);
    color: white;
    padding: 12px 40px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.contact-form-wrapper .wpcf7-submit:hover {
    background: var(--batop-dark);
}

/* Contact Info */
.contact-info {
    background: #f8f9fa;
    padding: 40px;
    border-radius: var(--radius);
    height: fit-content;
}

.contact-info h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--batop-dark);
}

.info-item {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #ddd;
}

.info-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.info-item h4 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--batop-primary);
    font-weight: 700;
}

.info-item p {
    color: #333;
    line-height: 1.6;
}

.info-item a {
    color: var(--batop-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-item a:hover {
    color: var(--batop-dark);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--batop-primary);
    color: white;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease;
}

.social-link:hover {
    background: var(--batop-dark);
    transform: translateY(-3px);
}

/* Contact Map */
.contact-map {
    width: 100%;
    height: 400px;
    border-radius: var(--radius);
    overflow: hidden;
    margin-top: 60px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
    .project-content-grid,
    .blog-content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .project-infos-sticky,
    .blog-sidebar {
        position: static;
    }

    .single-project-featured-image {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .services-grid,
    .projects-grid,
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .blog-content-grid {
        grid-template-columns: 1fr;
    }

    .blog-meta-header {
        flex-direction: column;
        gap: 10px;
    }

    .post-navigation {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .share-buttons {
        gap: 8px;
    }

    .single-blog-featured-image,
    .single-service-featured-image,
    .single-project-featured-image {
        height: 300px;
    }

    .cta-box-large {
        padding: 40px 20px;
    }

    .cta-box-large h2 {
        font-size: 1.5rem;
    }

    .hero-section .project-categories {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 1.5rem;
    }

    .single-blog-featured-image,
    .single-service-featured-image,
    .single-project-featured-image {
        height: 200px;
        margin-bottom: 30px;
    }

    .single-service-main,
    .project-content-main,
    .blog-content-main {
        font-size: 1rem;
    }

    .contact-form-wrapper,
    .contact-info {
        padding: 20px;
    }

    .infos-box,
    .sidebar-box {
        padding: 20px;
    }

    .service-benefits {
        padding: 30px 20px;
    }
}