/*
Theme Name: Gi Energy
Theme URI: https://gi-energy.ma
Author: Gi Energy
Author URI: https://gi-energy.ma
Description: Thème WordPress pour Gi Energy – énergie solaire au Maroc
Version: 3.0
Text Domain: gi-energy
*/

:root {
  --primary: #ef8526;
  --primary-light: #f2a050;
  --primary-dark: #cc6f1a;
  --foreground: #000000;
  --background: #ffffff;
  --muted: #f5f5f5;
  --muted-foreground: #737373;
  --border: #e5e5e5;
  --radius: 0.5rem;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== NAVBAR ===== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.5s ease, border-color 0.5s ease;
  border-bottom: 1px solid transparent;
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}

#navbar.page-nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-dots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.logo-text .gi {
  color: var(--primary);
}

.logo-text .energy {
  color: #fff;
  transition: color 0.3s;
}

#navbar.scrolled .logo-text .energy,
#navbar.page-nav .logo-text .energy {
  color: var(--foreground);
}

.nav-links {
  display: none;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }
}

.nav-links a {
  position: relative;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.3s;
}

#navbar.scrolled .nav-links a,
#navbar.page-nav .nav-links a {
  color: var(--foreground);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after,
.nav-links .current-menu-item a::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-links a:hover,
.nav-links a.active,
.nav-links .current-menu-item a {
  color: var(--primary);
}

.nav-cta {
  display: none;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .nav-cta {
    display: flex;
  }
}

.nav-phone {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.3s;
}

#navbar.scrolled .nav-phone,
#navbar.page-nav .nav-phone {
  color: var(--foreground);
}

.nav-phone:hover {
  color: var(--primary);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.625rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 15px rgba(239, 133, 38, 0.25);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(239, 133, 38, 0.4);
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s, color 0.3s;
  backdrop-filter: blur(4px);
}

.btn-outline-white:hover {
  background: #fff;
  color: #000;
  transform: scale(1.05);
}

.mobile-menu-btn {
  display: flex;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #fff;
  transition: color 0.3s;
}

#navbar.scrolled .mobile-menu-btn,
#navbar.page-nav .mobile-menu-btn {
  color: var(--foreground);
}

@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none;
  }
}

#mobile-menu {
  position: fixed;
  inset: 80px 0 0 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  z-index: 49;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
  overflow-y: auto;
}

#mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-nav a {
  font-size: 1.5rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--foreground);
  transition: color 0.3s, transform 0.3s;
  display: block;
}

.mobile-nav a:hover,
.mobile-nav .current-menu-item a {
  color: var(--primary);
  transform: translateX(8px);
}

.mobile-nav-phone {
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.mobile-nav-phone a {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
}

.phone-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(239, 133, 38, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ===== HERO CAROUSEL ===== */
#hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 0;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 10s ease-in-out;
  transform: scale(1);
}

.hero-slide.active .hero-bg {
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.25), rgba(0,0,0,0.5));
}

.hero-overlay-side {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.3), transparent, rgba(0,0,0,0.2));
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.hero-text {
  text-align: center;
  color: #fff;
  padding: 0 1rem;
  max-width: 900px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-in-out, transform 0.7s ease-in-out;
}

.hero-slide.active .hero-text {
  opacity: 1;
  transform: translateY(0);
}

.hero-tagline {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 1s ease 0.3s, transform 1s ease 0.3s;
}

.hero-slide.active .hero-tagline {
  opacity: 1;
  transform: translateY(0);
}

.hero-title {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s ease 0.5s, transform 1s ease 0.5s;
}

.hero-slide.active .hero-title {
  opacity: 1;
  transform: translateY(0);
}

.hero-title .text-primary {
  color: var(--primary);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.5rem);
  color: rgba(255,255,255,0.8);
  font-weight: 300;
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto 3rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease 0.7s, transform 1s ease 0.7s;
}

.hero-slide.active .hero-subtitle {
  opacity: 1;
  transform: translateY(0);
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1s ease 0.9s, transform 1s ease 0.9s;
}

.hero-slide.active .hero-ctas {
  opacity: 1;
  transform: translateY(0);
}

.hero-slide-num {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  display: none;
  align-items: center;
  gap: 1rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
  z-index: 3;
}

@media (min-width: 1024px) {
  .hero-slide-num {
    display: flex;
  }
}

.hero-slide-num .current {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.hero-slide-num .line {
  width: 48px;
  height: 1px;
  background: rgba(255,255,255,0.3);
}

.hero-indicators {
  position: absolute;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  flex-direction: column;
  gap: 12px;
  z-index: 3;
}

@media (min-width: 1024px) {
  .hero-indicators {
    display: flex;
  }
}

.hero-indicator {
  width: 4px;
  border-radius: 2px;
  cursor: pointer;
  border: none;
  transition: height 0.5s, background 0.5s;
  height: 32px;
  background: rgba(255,255,255,0.4);
}

.hero-indicator.active {
  height: 64px;
  background: var(--primary);
  box-shadow: 0 0 12px rgba(239,133,38,0.5);
}

.hero-dots {
  position: absolute;
  bottom: 6rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

@media (min-width: 1024px) {
  .hero-dots {
    display: none;
  }
}

.hero-dot {
  height: 8px;
  border-radius: 4px;
  cursor: pointer;
  border: none;
  transition: width 0.5s, background 0.5s;
  width: 8px;
  background: rgba(255,255,255,0.4);
}

.hero-dot.active {
  width: 32px;
  background: var(--primary);
}

.scroll-down {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  z-index: 3;
  animation: bounce 2s ease-in-out infinite;
}

.scroll-down:hover {
  color: #fff;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

/* ===== SERVICES SECTION ===== */
.services-section-gi {
  padding: 5rem 0;
  background: #fff;
}

.services-header {
  text-align: center;
  margin-bottom: 3rem;
}

.services-header .label-sm {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #ef8526;
  font-weight: 500;
  display: inline-block;
  margin-bottom: 1rem;
}

.services-header .services-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 0.75rem;
}

.services-header .services-subtitle {
  font-size: 1.125rem;
  color: #737373;
  max-width: 600px;
  margin: 0 auto;
}

.services-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .services-grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .services-grid-5 {
    grid-template-columns: 1fr;
  }
}

.service-card-gi {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  background: #fff;
  border: 1px solid #eef2f6;
  border-radius: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.service-card-gi:hover {
  border-color: #ef8526;
  box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.service-icon-gi {
  width: 96px;
  height: 96px;
  background: rgba(239, 133, 38, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.service-card-gi:hover .service-icon-gi {
  background: rgba(239, 133, 38, 0.15);
  transform: scale(1.05);
}

.service-icon-gi svg {
  width: 48px;
  height: 48px;
}

.service-card-gi h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.service-card-gi p {
  font-size: 0.875rem;
  color: #737373;
  line-height: 1.5;
  margin: 0;
}

/* ===== STATS SECTION ===== */
.stats-section-gi {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
}

.stats-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.pexels.com/photos/356036/pexels-photo-356036.jpeg?auto=compress&cs=tinysrgb&w=1920');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.stats-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.9);
}

.stats-bg-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(239,133,38,0.2), transparent, rgba(239,133,38,0.2));
}

.stats-bottom-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(239,133,38,0.5), transparent);
}

.stats-grid-gi {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem 2rem;
  text-align: center;
}

@media (max-width: 768px) {
  .stats-grid-gi {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.stat-item-gi {
  position: relative;
  color: #fff;
}

.stat-hover-ring {
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  opacity: 0;
  transition: opacity 0.5s, transform 0.5s;
}

.stat-item-gi:hover .stat-hover-ring {
  opacity: 1;
  transform: scale(1.1);
}

.stat-label-gi {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.stat-number-gi {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.5rem;
  background: linear-gradient(to bottom, #fff, rgba(255,255,255,0.8));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-number-gi .suffix {
  -webkit-text-fill-color: #ef8526;
  color: #ef8526;
}

.stat-line-gi {
  width: 64px;
  height: 2px;
  background: linear-gradient(to right, transparent, rgba(239,133,38,0.5), transparent);
  margin: 0 auto;
}

/* ===== PARTNERS SECTION ===== */
.partners-section {
  padding: 5rem 0 7rem;
  background: rgba(245,245,245,0.3);
  overflow: hidden;
  position: relative;
}

.partners-bg-grid {
  position: absolute;
  inset: 0;
  opacity: 0.02;
  background-image: linear-gradient(#000 1px, transparent 1px), linear-gradient(90deg, #000 1px, transparent 1px);
  background-size: 60px 60px;
}

.partners-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.partners-header .partners-pretitle {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #ef8526;
  font-weight: 500;
  margin-bottom: 1rem;
}

.partners-header .partners-title {
  font-size: clamp(1.875rem, 4vw, 3.125rem);
  font-weight: 700;
  color: #000;
}

.partners-track-wrap {
  position: relative;
}

.partners-mask-left {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 128px;
  background: linear-gradient(to right, rgba(245,245,245,0.3), transparent);
  z-index: 10;
  pointer-events: none;
}

.partners-mask-right {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 128px;
  background: linear-gradient(to left, rgba(245,245,245,0.3), transparent);
  z-index: 10;
  pointer-events: none;
}

.partners-track {
  display: flex;
  animation: partnersScroll 30s linear infinite;
  width: max-content;
}

.partners-track:hover {
  animation-play-state: paused;
}

.partner-logo-wrap {
  flex-shrink: 0;
  margin: 0 2rem;
}

.partner-logo-inner {
  width: 96px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: opacity 0.5s;
}

.partner-logo-inner:hover {
  opacity: 1;
}

.partner-logo-inner img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

@keyframes partnersScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 4rem 0;
  text-align: center;
}

.cta-title {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

.cta-text {
  color: rgba(255,255,255,0.8);
  margin-bottom: 1.5rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  background: #fff;
  color: #000;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
}

/* ===== PAGE HERO ===== */
.page-hero {
  position: relative;
  padding-top: 80px;
  height: 50vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.4));
}

.page-hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: #fff;
}

.page-hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.page-hero-content p {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.8);
  max-width: 40rem;
  margin: 0 auto;
}

/* ===== SOLUTIONS GRID ===== */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (max-width: 768px) {
  .solutions-grid {
    grid-template-columns: 1fr;
  }
}

.solution-card {
  background: #fff;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid #e5e5e5;
  transition: border-color 300ms;
}

.solution-card:hover {
  border-color: rgba(239,133,38,0.5);
}

.solution-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.solution-card li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #000;
  margin-bottom: 0.5rem;
}

.solution-card li span {
  color: #ef8526;
}

/* ===== PROJECTS GRID ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

.project-card {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 0.75rem;
  display: block;
  text-decoration: none;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms;
}

.project-card:hover img {
  transform: scale(1.1);
}

.project-card .hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(239,133,38,0.2);
  opacity: 0;
  transition: opacity 300ms;
}

.project-card:hover .hover-overlay {
  opacity: 1;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== ARTICLES GRID ===== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 1024px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }
}

.article-card {
  background: #fff;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid #e5e5e5;
  transition: all 300ms;
  text-decoration: none;
  display: block;
}

.article-card:hover {
  border-color: rgba(239,133,38,0.5);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.article-card:hover h3 {
  color: #ef8526;
}

.article-card .article-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms;
}

.article-card:hover .article-img img {
  transform: scale(1.05);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  align-items: center;
}

@media (max-width: 768px) {
  .featured-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== CONTACT FORM ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
}

@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.form-row-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (max-width: 640px) {
  .form-row-2 {
    grid-template-columns: 1fr;
  }
}

.form-input {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid #e5e5e5;
  border-radius: 0.5rem;
  background: rgba(245,245,245,0.5);
  font-size: 1rem;
  color: #000;
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  border-color: #ef8526;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #000;
  margin-bottom: 0.375rem;
}

.form-field {
  display: flex;
  flex-direction: column;
}

/* ===== FOOTER ===== */
footer {
  background: var(--muted);
  border-top: 1px solid var(--border);
}

.footer-main {
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}

.footer-col h4 {
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col ul li a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-col ul li a:hover {
  color: var(--primary);
}

.footer-col a.primary-link {
  font-size: 0.875rem;
  color: var(--primary);
  text-decoration: none;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links a {
  color: var(--foreground);
  transition: color 0.3s;
  text-decoration: none;
}

.social-links a:hover {
  color: var(--primary);
}

.social-links svg {
  width: 24px;
  height: 24px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1rem 0;
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-bottom p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-muted { color: var(--muted-foreground); }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.bg-muted { background: var(--muted); }
/* ===== ARTICLES GRID ===== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
}

.article-card {
    background: #fff;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.article-card:hover {
    border-color: #ef8526;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.article-card:hover h3 {
    color: #ef8526;
}

.article-card:hover .article-img img {
    transform: scale(1.05);
}

.article-img {
    height: 208px;
    overflow: hidden;
}

.article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Article vedette */
.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

@media (max-width: 768px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }
}

.featured-img {
    overflow: hidden;
    border-radius: 0.75rem;
}

.featured-img img {
    transition: transform 0.5s ease;
}

.featured-link:hover .featured-img img {
    transform: scale(1.05);
}

/* CTA */
.cta-section {
    padding: 4rem 0;
    background: #ef8526;
    text-align: center;
}

.cta-section h2 {
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 1.5rem;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

.cta-section a {
    background: #fff;
    color: #000;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.cta-section a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    background: #fff;
    color: #ef8526;
}
/* ===== MENU ACTIF ===== */
/* Navigation principale */
.nav-links .current-menu-item a,
.nav-links .current-page-ancestor a,
.nav-links .current-page-parent a,
.nav-links .current-menu-parent a {
    color: #ef8526 !important;
}

.nav-links .current-menu-item a::after,
.nav-links .current-page-ancestor a::after,
.nav-links .current-page-parent a::after,
.nav-links .current-menu-parent a::after {
    transform: scaleX(1) !important;
    background: #ef8526;
}

/* Mobile menu */
.mobile-nav .current-menu-item a,
.mobile-nav .current-page-ancestor a,
.mobile-nav .current-page-parent a,
.mobile-nav .current-menu-parent a {
    color: #ef8526 !important;
}