/* =========================================
   PETRO MENA ENERGY - Styles Page Accueil
   ========================================= */

/* Hero principal */
.hero {
  margin-top: 80px;
  min-height: 92vh;
  background: linear-gradient(135deg, rgba(0,51,160,0.85) 0%, rgba(0,166,81,0.7) 100%),
              url('https://images.unsplash.com/photo-1504917595217-d4dc5ebe6122?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M0 0h40v40H0V0zm40 40h40v40H40V40zm0-40h2l-2 2V0zm0 4l4-4h2l-6 6V4zm0 4l8-8h2L40 10V8zm0 4L52 0h2L40 14v-2zm0 4L56 0h2L40 18v-2zm0 4L60 0h2L40 22v-2zm0 4L64 0h2L40 26v-2zm0 4L68 0h2L40 30v-2zm0 4L72 0h2L40 34v-2zm0 4L76 0h2L40 38v-2zm0 4L80 0v2L42 40h-2zm4 0L80 4v2L46 40h-2zm4 0L80 8v2L50 40h-2zm4 0L80 12v2L54 40h-2zm4 0L80 16v2L58 40h-2zm4 0L80 20v2L62 40h-2zm4 0L80 24v2L66 40h-2zm4 0L80 28v2L70 40h-2zm4 0L80 32v2L74 40h-2zm4 0L80 36v2L78 40h-2zm4 0L80 40v-2h-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
  color: white;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 3rem;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
}

.hero-tag i { color: var(--primary-green); }

.hero h1 {
  font-size: 3.8rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 15px rgba(0,0,0,0.25);
}

.hero h1 em {
  font-style: normal;
  color: #7dd3a8;
}

.hero-desc {
  font-size: 1.15rem;
  opacity: 0.92;
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero Card */
.hero-card {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 2rem;
  min-width: 260px;
  color: white;
}

.hero-card-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.hero-card-item:last-child { border-bottom: none; }

.hero-card-icon {
  width: 44px;
  height: 44px;
  background: rgba(0,166,81,0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #7dd3a8;
  flex-shrink: 0;
}

.hero-card-item h4 { font-size: 0.85rem; margin-bottom: 0.1rem; }
.hero-card-item p { font-size: 0.75rem; opacity: 0.7; }

/* Hero Stats */
.hero-stats {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.hero-stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.hero-stat {
  text-align: center;
  color: white;
  padding: 0.5rem;
}

.hero-stat .num {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-green);
  display: block;
  line-height: 1;
}

.hero-stat .lbl {
  font-size: 0.75rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* =========================================
   SERVICES PREVIEW (Accueil)
   ========================================= */
.service-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 2px 20px rgba(0,0,0,0.07);
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.05);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--primary-green));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

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

.service-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(0,51,160,0.1), rgba(0,166,81,0.1));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--primary-blue);
  margin-bottom: 1.25rem;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
  color: white;
}

.service-card h3 {
  font-size: 1.05rem;
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.7;
}

.service-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary-blue);
  transition: gap 0.2s ease;
}

.service-card:hover .read-more { gap: 0.7rem; color: var(--primary-green); }

/* =========================================
   ABOUT SECTION (Accueil)
   ========================================= */
.about-img-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}

.about-img-wrap img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 20px;
}

.about-img-badge {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  background: var(--primary-green);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0,166,81,0.4);
}

.about-img-badge .big { font-size: 2rem; font-weight: 800; font-family: 'Montserrat', sans-serif; display: block; }
.about-img-badge small { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

.about-content { padding: 1rem 0; }

.about-content h2 {
  font-size: 2.2rem;
  color: var(--primary-blue);
  margin-bottom: 1.25rem;
  line-height: 1.3;
}

.about-content p {
  color: var(--gray);
  margin-bottom: 1.25rem;
  font-size: 0.97rem;
  line-height: 1.8;
}

.about-points {
  margin: 1.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.about-point {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.about-point i {
  color: var(--primary-green);
  font-size: 1rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.about-point span {
  font-size: 0.92rem;
  color: var(--dark);
  font-weight: 500;
}

/* =========================================
   PARTENAIRES STRIP
   ========================================= */
.partners-strip {
  background: var(--light);
  padding: 3.5rem 0;
  overflow: hidden;
}

.partners-label {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gray);
  margin-bottom: 2rem;
}

.partners-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2.5rem;
}

.partner-logo {
  background: white;
  border-radius: 10px;
  padding: 1rem 2rem;
  box-shadow: var(--shadow-sm);
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: var(--primary-blue);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.06);
}

.partner-logo:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  color: var(--primary-green);
}

/* =========================================
   CTA SECTION
   ========================================= */
.cta-section {
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  right: -100px;
  top: -100px;
  width: 500px;
  height: 500px;
  background: rgba(0,166,81,0.1);
  border-radius: 50%;
}

.cta-inner {
  text-align: center;
  color: white;
  position: relative;
  z-index: 2;
}

.cta-inner h2 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.cta-inner p {
  font-size: 1.1rem;
  opacity: 0.85;
  max-width: 500px;
  margin: 0 auto 2.5rem;
}

.cta-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================================
   RESPONSIVE ACCUEIL
   ========================================= */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .hero h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
  .hero-stats-inner { grid-template-columns: repeat(2, 1fr); }
  .hero-stat .num { font-size: 1.6rem; }
  .cta-inner h2 { font-size: 1.8rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.9rem; }
}
