/* ============================================
   TEMPLATE À PROPOS - FABRE MÉTAL CONSTRUCTION
   ============================================ */

/* Variables CSS */
:root {
  --primary-blue: #0056b3;
  --accent-gold: #ffd700;
  --dark-blue: #0a1628;
  --light-gray: #f8f9fa;
  --white: #ffffff;
  --text-dark: #333333;
  --transition: 0.4s ease-in-out;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-about {
  position: relative;
  min-height: 600px;
  background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 150px 20px 80px 20px !important; /* Fix pour header de 139px */
  margin-top: 0 !important;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  color: var(--white);
  animation: fadeInUp 1s ease-out;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 215, 0, 0.2);
  color: var(--accent-gold);
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  border: 1px solid var(--accent-gold);
}

.hero-content h1 {
  font-size: 56px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.9);
}

.hero-cta-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
}

.cta-button.primary {
  background: var(--accent-gold);
  color: var(--dark-blue);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.cta-button.primary:hover {
  background: #ffed4e;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.cta-button.secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.cta-button.secondary:hover {
  background: var(--white);
  color: var(--dark-blue);
  transform: translateY(-2px);
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: bounce 2s infinite;
}

.scroll-line {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent-gold), transparent);
}

/* ============================================
   SECTIONS COMMUNES
   ============================================ */

section {
  padding: 80px 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 42px;
  font-weight: 700;
  color: var(--dark-blue);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-gold), var(--primary-blue));
  border-radius: 2px;
}

.section-subtitle {
  font-size: 18px;
  color: #666;
  max-width: 700px;
  margin: 20px auto 0;
  line-height: 1.6;
}

/* ============================================
   SECTION NOTRE HISTOIRE
   ============================================ */

.section-histoire {
  background: var(--white);
}

.histoire-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.histoire-text p {
  font-size: 17px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 20px;
}

.histoire-image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.histoire-image .image-placeholder {
  width: 100%;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
}

.histoire-image svg {
  width: 100%;
  height: 100%;
  display: block;
}

.histoire-image:hover .image-placeholder {
  transform: scale(1.02);
}

@media (max-width: 968px) {
  .histoire-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .histoire-image .image-placeholder {
    height: 300px;
  }
}

/* ============================================
   SECTION TIMELINE
   ============================================ */

.section-timeline {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--accent-gold), var(--primary-blue));
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.timeline-item:nth-child(even) {
  direction: rtl;
}

.timeline-item:nth-child(even) .timeline-content {
  direction: ltr;
  text-align: right;
}

.timeline-year {
  font-size: 48px;
  font-weight: 700;
  color: var(--accent-gold);
  text-align: right;
  position: relative;
}

.timeline-year::after {
  content: '';
  position: absolute;
  right: -23px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background: var(--accent-gold);
  border-radius: 50%;
  border: 4px solid var(--white);
  box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.2);
}

.timeline-item:nth-child(even) .timeline-year {
  text-align: left;
}

.timeline-item:nth-child(even) .timeline-year::after {
  right: auto;
  left: -23px;
}

.timeline-content {
  background: var(--white);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all var(--transition);
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.timeline-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--dark-blue);
  margin-bottom: 10px;
}

.timeline-content p {
  font-size: 15px;
  line-height: 1.6;
  color: #666;
}

/* ============================================
   SECTION VISION & MISSION
   ============================================ */

.section-vision-mission {
  background: var(--dark-blue);
  color: var(--white);
}

.section-vision-mission .section-header h2 {
  color: var(--white);
}

.section-vision-mission .section-header h2::after {
  background: var(--accent-gold);
}

.vision-mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

@media (max-width: 968px) {
  .vision-mission-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.vision-card,
.mission-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 215, 0, 0.3);
  backdrop-filter: blur(10px);
  transition: all var(--transition);
}

.vision-card:hover,
.mission-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-gold);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

.card-icon {
  color: var(--accent-gold);
  margin-bottom: 20px;
}

.vision-card h3,
.mission-card h3 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--accent-gold);
}

.vision-card p,
.mission-card p {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   SECTION NOS OBJECTIFS
   ============================================ */

.section-objectifs {
  background: var(--white);
}

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

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

.objectif-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding: 40px 30px;
  border-radius: 12px;
  border-left: 4px solid var(--accent-gold);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all var(--transition);
  position: relative;
}

.objectif-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  border-left-color: var(--primary-blue);
}

.objectif-number {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 48px;
  font-weight: 700;
  color: rgba(0, 86, 179, 0.1);
}

.objectif-card h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--dark-blue);
  margin-bottom: 15px;
}

.objectif-card p {
  font-size: 15px;
  line-height: 1.7;
  color: #666;
}

/* ============================================
   SECTION NOS VALEURS
   ============================================ */

.section-valeurs {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

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

@media (max-width: 968px) {
  .valeurs-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}

.valeur-card {
  background: var(--white);
  padding: 35px 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all var(--transition);
}

.valeur-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.valeur-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--accent-gold), #ffed4e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-blue);
}

.valeur-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--dark-blue);
  margin-bottom: 12px;
}

.valeur-card p {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
}

/* ============================================
   SECTION CERTIFICATIONS
   ============================================ */

.section-certifications {
  background: var(--white);
}

.certifications-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.certification-card {
  text-align: center;
  padding: 40px 30px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all var(--transition);
}

.certification-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.certification-badge {
  width: 100px;
  height: 100px;
  margin: 0 auto 25px;
  background: linear-gradient(135deg, var(--accent-gold), #ffed4e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-blue);
  box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3);
}

.certification-card h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--dark-blue);
  margin-bottom: 15px;
}

.certification-card p {
  font-size: 15px;
  line-height: 1.6;
  color: #666;
}

/* ============================================
   SECTION NOS PÔLES
   ============================================ */

.section-poles {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.poles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.pole-card {
  background: var(--white);
  padding: 35px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.pole-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-left: 4px solid var(--accent-gold);
}

.pole-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-blue), #0066cc);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.pole-card h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--dark-blue);
}

.pole-card p {
  font-size: 15px;
  line-height: 1.6;
  color: #666;
  flex-grow: 1;
}

.pole-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-blue);
  transition: all var(--transition);
}

.pole-card:hover .pole-link {
  color: var(--accent-gold);
  transform: translateX(5px);
}

/* ============================================
   SECTION CTA FINAL
   ============================================ */

.section-cta-final {
  position: relative;
  background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 100%);
  color: var(--white);
  padding: 100px 20px;
  text-align: center;
}

.cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 70% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 15px;
}

.cta-content .cta-subtitle {
  font-size: 20px;
  color: var(--accent-gold);
  margin-bottom: 20px;
}

.cta-text {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

@keyframes bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .hero-about {
    padding: 120px 20px 50px 20px !important;
  }
  
  .hero-content h1 {
    font-size: 36px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  .section-header h2 {
    font-size: 32px;
  }
  
  .histoire-content,
  .vision-mission-grid,
  .poles-grid {
    grid-template-columns: 1fr;
  }
  
  .objectifs-grid,
  .valeurs-grid,
  .certifications-grid {
    grid-template-columns: 1fr;
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item {
    grid-template-columns: 1fr;
    padding-left: 50px;
  }
  
  .timeline-item:nth-child(even) {
    direction: ltr;
  }
  
  .timeline-item:nth-child(even) .timeline-content {
    text-align: left;
  }
  
  .timeline-year {
    text-align: left;
    font-size: 32px;
  }
  
  .timeline-year::after {
    left: -43px;
    right: auto;
  }
  
  .timeline-item:nth-child(even) .timeline-year::after {
    left: -43px;
  }
}

@media (max-width: 480px) {
  .hero-about {
    padding: 110px 15px 40px 15px !important;
  }
  
  .hero-content h1 {
    font-size: 28px;
  }
  
  .section-header h2 {
    font-size: 26px;
  }
  
  .cta-content h2 {
    font-size: 28px;
  }
}

/* RTL Support for Arabic */
[dir="rtl"] .objectif-card {
  border-left: none;
  border-right: 4px solid var(--accent-gold);
}

[dir="rtl"] .objectif-card:hover {
  border-right-color: var(--primary-blue);
}

[dir="rtl"] .pole-card:hover {
  border-left: none;
  border-right: 4px solid var(--accent-gold);
}

[dir="rtl"] .timeline::before {
  left: auto;
  right: 50%;
  transform: translateX(50%);
}

[dir="rtl"] .timeline-year {
  text-align: left;
}

[dir="rtl"] .timeline-year::after {
  right: auto;
  left: -23px;
}


/* ============================================
   FOOTER CORRECTION
   ============================================ */

/* Forcer le footer à s'afficher correctement */
.site-footer-pro {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  margin-top: 0 !important;
}

.footer-container-pro {
  display: flex !important;
  visibility: visible !important;
}

/* S'assurer que le contenu principal ne cache pas le footer */
.page-template-template-a-propos main,
.page-template-template-a-propos .main-content {
  margin-bottom: 0 !important;
}
