/* Styles améliorés pour la page Notre Histoire */

/* Hero Section Amélioré */
.histoire-hero {
  height: 70vh;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.9) 0%, rgba(59, 130, 246, 0.8) 100%),
    url("https://via.placeholder.com/1200x800/1e3a8a/ffffff?text=Histoire+SODIMAPRO") center / cover;
  display: flex;
  align-items: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.histoire-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 2rem;
  font-size: 1rem;
  opacity: 0.9;
}

.breadcrumb a {
  color: #bfdbfe;
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumb a:hover {
  color: white;
}

.histoire-hero h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 3rem;
  opacity: 0.9;
  font-weight: 300;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2rem;
}

.hero-stat {
  text-align: center;
}

.hero-stat .stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: bold;
  color: #60a5fa;
}

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

/* Timeline Section */
.timeline-section {
  padding: 5rem 0;
  background: #f8fafc;
}

.section-title {
  text-align: center;
  font-size: 3rem;
  font-weight: bold;
  color: #1f2937;
  margin-bottom: 4rem;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  border-radius: 2px;
}

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

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #2563eb, #60a5fa);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-date {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.1rem;
  min-width: 100px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
  position: relative;
  z-index: 2;
}

.timeline-content {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin: 0 2rem;
  flex: 1;
  position: relative;
  border-left: 4px solid #2563eb;
}

.timeline-content h3 {
  color: #1e3a8a;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.timeline-content p {
  color: #6b7280;
  line-height: 1.6;
}

/* Histoire Détaillée */
.histoire-detail {
  padding: 5rem 0;
  background: white;
}

.histoire-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.histoire-image-section {
  position: sticky;
  top: 100px;
}

.main-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  margin-bottom: 1.5rem;
}

.main-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.main-image:hover .image-overlay {
  opacity: 1;
}


.play-button:hover {
  transform: scale(1.1);
}

.image-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.image-gallery img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s;
}

.image-gallery img:hover {
  transform: scale(1.05);
}

.content-header {
  margin-bottom: 2rem;
}

.badge {
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1rem;
}

.histoire-content h2 {
  font-size: 2.2rem;
  font-weight: bold;
  color: #1f2937;
  line-height: 1.3;
}

.text-block {
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  border-radius: 15px;
  background: #f8fafc;
  border-left: 4px solid #e5e7eb;
  transition: all 0.3s;
}

.text-block:hover {
  border-left-color: #2563eb;
  transform: translateX(5px);
}

.text-block h3 {
  color: #1e3a8a;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.text-block h3 i {
  color: #60a5fa;
}

.text-block p {
  color: #374151;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.highlight-block {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-left-color: #2563eb;
}

/* Marques Section Améliorée */
.marques-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e5e7eb 100%);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: bold;
  color: #1f2937;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.2rem;
  color: #6b7280;
}

.marques-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.marque-item {
  background: white;
  padding: 2rem 1.5rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.marque-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
  transition: left 0.5s;
}

.marque-item:hover::before {
  left: 100%;
}

.marque-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.marque-item.premium {
  border: 2px solid #fbbf24;
  position: relative;
}

.marque-item.premium::after {
  content: "★";
  position: absolute;
  top: 10px;
  right: 15px;
  color: #fbbf24;
  font-size: 1.2rem;
}

.marque-logo {
  font-size: 1.3rem;
  font-weight: bold;
  color: #1e3a8a;
  margin-bottom: 0.5rem;
}

.marque-category {
  font-size: 0.9rem;
  color: #6b7280;
  background: #f3f4f6;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  display: inline-block;
}

/* Eurochef Section Améliorée */
.eurochef-section {
  padding: 5rem 0;
  background: white;
}

.eurochef-card {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  color: white;
  padding: 3rem;
  border-radius: 25px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: center;
  box-shadow: 0 20px 40px rgba(30, 58, 138, 0.3);
  position: relative;
  overflow: hidden;
}

.eurochef-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.eurochef-logo {
  text-align: center;
  position: relative;
  z-index: 2;
}

.eurochef-logo img {
  max-width: 100%;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.eurochef-content {
  position: relative;
  z-index: 2;
}

.eurochef-content h2 {
  font-size: 2.2rem;
  font-weight: bold;
  margin-bottom: 2rem;
}

.eurochef-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.eurochef-stat {
  text-align: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(10px);
}

.eurochef-stat .number {
  display: block;
  font-size: 1.8rem;
  font-weight: bold;
  color: #60a5fa;
}

.eurochef-stat .label {
  font-size: 0.9rem;
  opacity: 0.9;
}

.eurochef-description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

blockquote {
  font-style: italic;
  font-size: 1.2rem;
  border-left: 4px solid #60a5fa;
  padding-left: 1rem;
  opacity: 0.9;
}

/* CTA Section */
.cta-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  color: white;
  text-align: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

.cta-buttons .btn {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn-outline {
  background: transparent;
  border: 2px solid white;
  color: white;
}

.btn-outline:hover {
  background: white;
  color: #1e3a8a;
}

/* Contact Icons Améliorés */
.contact-icons {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 100;
}

.contact-icon-btn {
  width: 55px;
  height: 55px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
  position: relative;
  overflow: hidden;
}

.contact-icon-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}

.contact-icon-btn:hover::before {
  opacity: 1;
}

.contact-icon-btn:hover {
  transform: scale(1.15);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
}

/* Navigation active */
.nav-menu a.active {
  color: #2563eb;
  font-weight: 600;
  position: relative;
}

.nav-menu a.active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 2px;
  background: #2563eb;
  border-radius: 1px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .contact-icons {
    position: static;
    flex-direction: row;
    justify-content: center;
    padding: 1rem 0;
    background: #f8fafc;
    transform: none;
    left: auto;
    top: auto;
  }

  .histoire-hero {
    height: 60vh;
    text-align: center;
  }

  .histoire-hero h1 {
    font-size: 2.5rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 60px;
  }

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

  .timeline-date {
    position: absolute;
    left: -10px;
    min-width: 80px;
  }

  .timeline-content {
    margin: 0;
    margin-top: 1rem;
  }

  .histoire-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .histoire-image-section {
    position: static;
  }

  .eurochef-card {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .eurochef-stats {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .marques-carousel {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .section-title {
    font-size: 2rem;
  }

  .marques-carousel {
    grid-template-columns: 1fr;
  }

  .contact-icon-btn {
    width: 50px;
    height: 50px;
  }
}

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

.timeline-item:nth-child(odd) .timeline-content {
  animation: slideInLeft 0.8s ease-out;
}

.timeline-item:nth-child(even) .timeline-content {
  animation: slideInRight 0.8s ease-out;
}

.text-block {
  animation: fadeInUp 0.6s ease-out;
}

.marque-item {
  animation: fadeInUp 0.6s ease-out;
}

.marque-item:nth-child(even) {
  animation-delay: 0.1s;
}

.marque-item:nth-child(3n) {
  animation-delay: 0.2s;
}
